summaryrefslogtreecommitdiff
path: root/modules/mappers/mod_rewrite.c
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2023-03-11 21:29:11 +0000
committerEric Covener <covener@apache.org>2023-03-11 21:29:11 +0000
commit1a4aac3d209f4314bcb511d73cf12f8c25c8c984 (patch)
tree3beb9e1e5feb15d090cbcff42e9caf1b3bf8344f /modules/mappers/mod_rewrite.c
parent07b802c934b841d376733a3e2ecfa55f6b0ee994 (diff)
downloadhttpd-1a4aac3d209f4314bcb511d73cf12f8c25c8c984.tar.gz
followup to r1908296: only for redirects
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908299 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_rewrite.c')
-rw-r--r--modules/mappers/mod_rewrite.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c
index 2872e34006..8f81a89715 100644
--- a/modules/mappers/mod_rewrite.c
+++ b/modules/mappers/mod_rewrite.c
@@ -4813,8 +4813,7 @@ static int hook_uri2file(request_rec *r)
unsigned skip_absolute = is_absolute_uri(r->filename, NULL);
apr_size_t flen = r->filename ? strlen(r->filename) : 0;
int to_proxyreq = (flen > 6 && strncmp(r->filename, "proxy:", 6) == 0);
- int will_escape = (to_proxyreq || skip_absolute)
- && (rulestatus != ACTION_NOESCAPE);
+ int will_escape = skip_absolute && (rulestatus != ACTION_NOESCAPE);
if (r->args
&& !will_escape