[BUG] download link doesn't work if path has spaces.
Russell Francis
rfrancis at ev.net
Wed Oct 13 17:14:10 PDT 2004
Hello,
I am using CVSweb 3.0.1 and discovered that if any file contained in a
CVS module has a space character in it's path, the download link will
fail to download the file. The attached patch seems to fix the problem
but I am not very familiar with CVSweb so it is really more of a shot in
the dark.
If you allready know about this issue, I appologize for repeating it.
Thanks,
Russ
-------------- next part --------------
--- cvsweb.cgi.backup Wed Oct 13 19:08:18 2004
+++ cvsweb.cgi Wed Oct 13 19:55:23 2004
@@ -4106,6 +4106,7 @@
if (!defined($mimetype) || $mimetype !~ CVSWEBMARKUP) {
my $path = $where;
$path =~ s|[^/]+$||;
+ $path =~ s/ /%20/g;
$url = "$scriptname/$CheckoutMagic/${path}$url";
}
$url .= '?rev=' . uri_escape($revision);
More information about the freebsd-cvsweb
mailing list