]>
Commit | Line | Data |
---|---|---|
0a3b9077 ER |
1 | --- ./cvsweb.cgi~ 2005-04-02 03:03:37.000000000 +0300 |
2 | +++ ./cvsweb.cgi 2005-04-02 03:03:57.000000000 +0300 | |
3 | @@ -164,6 +164,7 @@ | |
4 | $verbose = $v; | |
5 | $checkoutMagic = "~checkout~"; | |
6 | $where = defined($ENV{'PATH_INFO'}) ? $ENV{'PATH_INFO'} : ""; | |
7 | +$where =~ tr|/|/|s; | |
8 | $doCheckout = ($where =~ /^\/$checkoutMagic/); | |
9 | $where =~ s|^/($checkoutMagic)?||; | |
10 | $where =~ s|/+$||; | |
11 | @@ -936,6 +937,7 @@ | |
12 | sub link($$) { | |
13 | my($name, $where) = @_; | |
14 | ||
15 | + $where =~ s| |%20|; | |
16 | return "<A HREF=\"$where\">$name</A>\n"; | |
17 | } | |
18 | ||
e9462476 ER |
19 | --- ./cvsweb.cgi~ 2005-04-02 03:11:28.000000000 +0300 |
20 | +++ ./cvsweb.cgi 2005-04-02 03:18:05.000000000 +0300 | |
21 | @@ -1253,6 +1253,10 @@ | |
22 | } | |
23 | } | |
24 | ||
25 | + # remove first slash | |
26 | + # otherwise we get "Absolute module reference invalid" error from cvs | |
27 | + $where =~ s#^/##; | |
28 | + | |
29 | ### just for the record: | |
30 | ### 'cvs co' seems to have a bug regarding single checkout of | |
31 | ### directories/files having spaces in it; |