Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 2003 12:31:34 +0200
From:      sschwerdhoefer@multamedio.de (Sebastian Schwerdhoefer)
To:        freebsd-cvsweb@FreeBSD.org
Subject:   error in onclick event
Message-ID:  <20030402103134.GA937@amalthea>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030402103134.GA937>