]>
Commit | Line | Data |
---|---|---|
12a6b731 ER |
1 | fix for cases when SCRIPT_NAME is empty, ie the cvsweb script is handler to whole vhost: |
2 | ||
3 | <VirtualHost *:80> | |
4 | ServerName cvs | |
5 | ||
6 | DocumentRoot /usr/share/cvsweb/cvsweb.cgi | |
7 | <Location /> | |
8 | Options ExecCGI | |
9 | </Location> | |
10 | </VirtualHost> | |
11 | ||
12 | --- cvsweb-3.0.6/cvsweb.cgi 2006-01-09 23:56:57.000000000 +0200 | |
13 | +++ /tmp/cvsweb.cgi 2006-01-10 00:59:36.000000000 +0200 | |
14 | @@ -299,7 +299,7 @@ | |
15 | $where = $pathinfo; | |
16 | $doCheckout = $where =~ s|^/$CheckoutMagic/|/|o; | |
17 | $where =~ s|^/||; | |
18 | -$scriptname =~ s|^/*|/|; | |
19 | +$scriptname =~ s|^/*|/| if $scriptname; | |
20 | ||
21 | # Let's workaround thttpd's stupidity.. | |
22 | if ($scriptname =~ m|/$|) { |