1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

mod_proxy: escape for non-proxypass configuration

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918550 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2024-06-24 17:21:00 +00:00
parent 12542a8032
commit c329a643a3

View File

@@ -1320,15 +1320,18 @@ static int proxy_handler(request_rec *r)
}
if (!r->proxyreq) {
rc = DECLINED;
/* We may have forced the proxy handler via config or .htaccess */
if (r->handler &&
strncmp(r->handler, "proxy:", 6) == 0 &&
strncmp(r->filename, "proxy:", 6) != 0) {
r->proxyreq = PROXYREQ_REVERSE;
r->filename = apr_pstrcat(r->pool, r->handler, r->filename, NULL);
/* Still need to fixup/canonicalize r->filename */
rc = proxy_fixup(r);
}
else {
return DECLINED;
if (rc != OK) {
return rc;
}
} else if (strncmp(r->filename, "proxy:", 6) != 0) {
return DECLINED;