From: Justin Erenkrantz Date: Thu, 3 Feb 2005 23:18:48 +0000 (+0000) Subject: mod_proxy: Fix ProxyRemoteMatch directive. X-Git-Tag: 2.1.3~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=632ec345e98020711b9b5838789200326564fc3b;p=apache mod_proxy: Fix ProxyRemoteMatch directive. PR: 33170 Submitted by: Rici Lake Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151248 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index f30ae597e2..14c452b5f8 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.1.3 [Remove entries to the current 2.0 section below, when backported] + *) mod_proxy: Fix ProxyRemoteMatch directive. PR 33170. + [Rici Lake ] + *) proxy HTTP: Rework the handling of request bodies to handle chunked input and input filters which modify content length, and avoid spooling arbitrary-sized request bodies in memory. diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 7a3e581486..735d3e9168 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -618,8 +618,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,