Skip to content

Commit 1a4aac3

Browse files
committed
followup to r1908296: only for redirects
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908299 13f79535-47bb-0310-9956-ffa450edef68
1 parent 07b802c commit 1a4aac3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/mappers/mod_rewrite.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -4813,8 +4813,7 @@ static int hook_uri2file(request_rec *r)
48134813
unsigned skip_absolute = is_absolute_uri(r->filename, NULL);
48144814
apr_size_t flen = r->filename ? strlen(r->filename) : 0;
48154815
int to_proxyreq = (flen > 6 && strncmp(r->filename, "proxy:", 6) == 0);
4816-
int will_escape = (to_proxyreq || skip_absolute)
4817-
&& (rulestatus != ACTION_NOESCAPE);
4816+
int will_escape = skip_absolute && (rulestatus != ACTION_NOESCAPE);
48184817

48194818
if (r->args
48204819
&& !will_escape

0 commit comments

Comments
 (0)