From: Nick Kew Date: Tue, 21 Jun 2005 10:53:00 +0000 (+0000) Subject: PR: 10775 X-Git-Tag: 2.1.6~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e66bddb70029c54928e38f4634ca7b3c6e22af4d;p=thirdparty%2Fapache%2Fhttpd.git PR: 10775 Submitted by: Christian Schubert Reviewed by: niq git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@191647 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_script.c b/server/util_script.c index dcf418ddc48..35973a3bd16 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -289,7 +289,11 @@ AP_DECLARE(int) ap_find_path_info(const char *uri, const char *path_info) 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;