SOURCES: cvsweb-emptyscript.patch (NEW) - fix for having cvsweb as...
glen
glen at pld-linux.org
Tue Jan 10 00:17:03 CET 2006
Author: glen Date: Mon Jan 9 23:17:03 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix for having cvsweb as vhost handler
---- Files affected:
SOURCES:
cvsweb-emptyscript.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/cvsweb-emptyscript.patch
diff -u /dev/null SOURCES/cvsweb-emptyscript.patch:1.1
--- /dev/null Tue Jan 10 00:17:03 2006
+++ SOURCES/cvsweb-emptyscript.patch Tue Jan 10 00:16:58 2006
@@ -0,0 +1,22 @@
+fix for cases when SCRIPT_NAME is empty, ie the cvsweb script is handler to whole vhost:
+
+<VirtualHost *:80>
+ ServerName cvs
+
+ DocumentRoot /usr/share/cvsweb/cvsweb.cgi
+ <Location />
+ Options ExecCGI
+ </Location>
+</VirtualHost>
+
+--- cvsweb-3.0.6/cvsweb.cgi 2006-01-09 23:56:57.000000000 +0200
++++ /tmp/cvsweb.cgi 2006-01-10 00:59:36.000000000 +0200
+@@ -299,7 +299,7 @@
+ $where = $pathinfo;
+ $doCheckout = $where =~ s|^/$CheckoutMagic/|/|o;
+ $where =~ s|^/||;
+-$scriptname =~ s|^/*|/|;
++$scriptname =~ s|^/*|/| if $scriptname;
+
+ # Let's workaround thttpd's stupidity..
+ if ($scriptname =~ m|/$|) {
================================================================
More information about the pld-cvs-commit
mailing list