From ba8ab9bed436d6fdf43ac1be7e075f79c19832c3 Mon Sep 17 00:00:00 2001 From: Jean-Frederic Clere Date: Wed, 18 Aug 2004 16:46:12 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.40.0