You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2023/03/11 21:29:12 UTC

svn commit: r1908299 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Author: covener
Date: Sat Mar 11 21:29:11 2023
New Revision: 1908299

URL: http://svn.apache.org/viewvc?rev=1908299&view=rev
Log:
followup to r1908296: only for redirects


Modified:
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=1908299&r1=1908298&r2=1908299&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Sat Mar 11 21:29:11 2023
@@ -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