[prev in list] [next in list] [prev in thread] [next in thread]
List: mandoc-source
Subject: cvsweb: merge rev.
From: schwarze () mandoc ! bsd ! lv
Date: 2019-11-12 9:28:45
Message-ID: 8d0778965e045036 () mandoc ! bsd ! lv
[Download RAW message or body]
Log Message:
-----------
merge rev. 3.119.2.25:
make empty SCRIPT_NAME work as expected
Modified Files:
--------------
cvsweb:
cvsweb.cgi
Revision Data
-------------
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 4.20
retrieving revision 4.21
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r4.20 -r4.21
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -263,7 +263,7 @@ $scriptname = '' unless defined($scri
$where = $pathinfo;
$doCheckout = $where =~ s|^/$CheckoutMagic/|/|o;
$where =~ s|^/||;
-$scriptname =~ s|^/*|/|;
+$scriptname =~ s|^/+||;
# Let's workaround thttpd's stupidity..
if ($scriptname =~ m|/$|) {
@@ -271,6 +271,7 @@ if ($scriptname =~ m|/$|) {
my $re = quotemeta $pathinfo;
$scriptname =~ s/$re$//;
}
+$scriptname = "/$scriptname" if $scriptname;
# $scriptname : the URI escaped path to this script
# $where : the path in the CVS repository (without leading /, or only /)
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic