httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r191647 - /httpd/httpd/trunk/server/util_script.c
Date Tue, 21 Jun 2005 10:53:03 GMT
Author: niq
Date: Tue Jun 21 03:53:00 2005
New Revision: 191647

URL: http://svn.apache.org/viewcvs?rev=191647&view=rev
Log:
PR 10755: committing patch from Christian Schubert

Modified:
    httpd/httpd/trunk/server/util_script.c

Modified: httpd/httpd/trunk/server/util_script.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/server/util_script.c?rev=191647&r1=191646&r2=191647&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_script.c (original)
+++ httpd/httpd/trunk/server/util_script.c Tue Jun 21 03:53:00 2005
@@ -289,7 +289,11 @@
     int lu = strlen(uri);
     int lp = strlen(path_info);
 
-    while (lu-- && lp-- && uri[lu] == path_info[lp]);
+    while (lu-- && lp-- && uri[lu] == path_info[lp]) {
+        if (path_info[lp] == '/') {
+            while (lu && uri[lu-1] == '/') lu--;
+        }
+    }
 
     if (lu == -1) {
         lu = 0;



Mime
View raw message