]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
followup to r1908296: only for redirects
authorEric Covener <covener@apache.org>
Sat, 11 Mar 2023 21:29:11 +0000 (21:29 +0000)
committerEric Covener <covener@apache.org>
Sat, 11 Mar 2023 21:29:11 +0000 (21:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908299 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index 2872e34006c343978bf94bbd2c1f9b25b752b0b2..8f81a89715851e145cbfdbf1f3eb9694b8cccf25 100644 (file)
@@ -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