error in onclick event

Sebastian Schwerdhoefer sschwerdhoefer at multamedio.de
Wed Apr 2 02:31:38 PST 2003


Hi developers

i'm not a perl programmer, but it seem's that i found a little mistake
in cvsweb.cgi. when trying to download a specific revision of a file
not in the default repository via cvsweb in a browser supporting
javascript, we got an error site. The Mistake seems to be in the
onClick event (on the "download" link), where no repository is
specified. so cvs try's to co the file out of the standart repository
which does not work.

cause disabling javascript is not the ultimate solution, i looked at
cvsweb.cgi, searched "onclick" and changed the line below from

hrefquote($fullurl), join (',', @attr);

to 

hrefquote("$fullurl$barequery"), join (',', @attr);

... and it works :-)

we use cvsweb 2.0.4 on Linux 2.2.19 with perl 5.

Sebastian 'Schwerdy' Schwerdhoefer



More information about the freebsd-cvsweb mailing list