From: Justin Erenkrantz Date: Fri, 4 Feb 2005 17:36:55 +0000 (+0000) Subject: mod_proxy: Fix ProxyRemoteMatch directive. X-Git-Tag: 2.0.53~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f0824aa8d423d5601a9c484918f728f5a4512e7;p=thirdparty%2Fapache%2Fhttpd.git mod_proxy: Fix ProxyRemoteMatch directive. MFC: 151248 PR: 33170 Submitted by: Rici Lake Reviewed by: jerenkrantz, trawick, fielding, pquerna git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@151376 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index cf41935102f..df58a4193f5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.53 + *) mod_proxy: Fix ProxyRemoteMatch directive. PR 33170. + [Rici Lake ] + *) mod_proxy: Respect errors reported by pre_connection hooks. [Jeff Trawick] diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 069c97c3465..46a375f9880 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -388,7 +388,8 @@ static int proxy_handler(request_rec *r) for (i = 0; i < proxies->nelts; i++) { p2 = ap_strchr_c(ents[i].scheme, ':'); /* is it a partial URL? */ if (strcmp(ents[i].scheme, "*") == 0 || - (ents[i].use_regex && ap_regexec(ents[i].regexp, url, 0,NULL, 0)) || + (ents[i].use_regex && + ap_regexec(ents[i].regexp, url, 0,NULL, 0) == 0) || (p2 == NULL && strcasecmp(scheme, ents[i].scheme) == 0) || (p2 != NULL && strncasecmp(url, ents[i].scheme, strlen(ents[i].scheme)) == 0)) {