From: Jean-Frederic Clere Date: Wed, 18 Aug 2004 16:46:12 +0000 (+0000) Subject: Prevent / beeing accepted wrongly by the proxy when having for example: X-Git-Tag: STRIKER_2_1_0_RC1~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba8ab9bed436d6fdf43ac1be7e075f79c19832c3;p=apache Prevent / beeing accepted wrongly by the proxy when having for example: ProxyPass ajp://localhost:8009/examples/ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104714 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 26cdbd2d6b..bac52dd407 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -257,6 +257,13 @@ static int alias_match(const char *uri, const char *alias_fakename) urip = end_uri; } + /* We reach the end of the uri before the end of "alias_fakename" + * for example uri is "/" and alias_fakename "/examples" + */ + if (urip == end_uri && aliasp!=end_fakename) { + return 0; + } + /* Check last alias path component matched all the way */ if (aliasp[-1] != '/' && *urip != '\0' && *urip != '/') return 0;