From owner-freebsd-cvsweb Fri Jul 12 12: 1:24 2002 Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64AE637B400 for ; Fri, 12 Jul 2002 12:01:22 -0700 (PDT) Received: from random.chezwam.org (cherche-blonde-a-forte-poitrine.chezwam.org [212.11.46.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AB0E43E7B for ; Fri, 12 Jul 2002 12:01:21 -0700 (PDT) (envelope-from ydroneaud@meuh.eu.org) Received: from meuh by random.chezwam.org with local (Exim 3.35 #1 (Debian)) id 17T5fG-0007DV-00 for ; Fri, 12 Jul 2002 21:01:14 +0200 To: freebsd-cvsweb@FreeBSD.org Subject: [PATCH] download + javascript From: Yann Droneaud Organization: This is for me Corp., Meuh, TuxFamily.org, Ambre/Chaos Date: 12 Jul 2002 21:01:13 +0200 Message-ID: <86bs9c6a9y.fsf@random.chezwam.org> Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-cvsweb@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= Hi, I got some problems when clicking on "download" links, it reports me error. So i try to fix it. Here is the result. It set the javascript link to be like the html link. It seems to work for me. Regards ... -- Yann Droneaud +33 6 88 40 82 43 1024D/BEA43321 5D91 B5B0 5137 B8FE 6882 FE19 CAA0 6F05 BEA4 3321 http://www.meuh.eu.org/ http://www-iupmime.univ-lemans.fr/ --=-=-= Content-Disposition: attachment; filename=patch-freebsd-cvsweb-javascript.diff Content-Description: patch javascript download link =================================================================== RCS file: /home/ncvs/projects/cvsweb/cvsweb.cgi,v retrieving revision 1.114 diff -u -r1.114 cvsweb.cgi --- cvsweb.cgi 2002/07/10 15:30:56 1.114 +++ cvsweb.cgi 2002/07/12 18:28:16 @@ -3467,7 +3493,7 @@ # the same window *twice*. printf q` onclick="window.open('%s','cvs_checkout','%s');return false"`, - hrefquote($fullurl), join (',', @attr); + hrefquote("$fullurl$barequery"), join (',', @attr); } } print ">$textlink"; --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cvsweb" in the body of the message