]> git.pld-linux.org Git - packages/cvsweb.git/commitdiff
- fix for having cvsweb as vhost handler
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 9 Jan 2006 23:16:58 +0000 (23:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cvsweb-emptyscript.patch -> 1.1

cvsweb-emptyscript.patch [new file with mode: 0644]

diff --git a/cvsweb-emptyscript.patch b/cvsweb-emptyscript.patch
new file mode 100644 (file)
index 0000000..23c0563
--- /dev/null
@@ -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|/$|) {
This page took 0.056225 seconds and 4 git commands to generate.