]> granicus.if.org Git - apache/commitdiff
mod_rewrite: Don't canonicalise URLs with [P,NE]
authorNick Kew <niq@apache.org>
Fri, 11 Jan 2008 10:52:09 +0000 (10:52 +0000)
committerNick Kew <niq@apache.org>
Fri, 11 Jan 2008 10:52:09 +0000 (10:52 +0000)
PR 43319

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611134 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/mappers/mod_rewrite.c

diff --git a/CHANGES b/CHANGES
index 714d1db39c0c9076da620e8ba82b388841576254..409a4f8842b94ac76c39814efdca9ecf0770cec2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 Changes with Apache 2.3.0
 [ When backported to 2.2.x, remove entry from this file ]
 
+  *) mod_rewrite: Don't canonicalise URLs with [P,NE]
+     PR 43319 [<rahul sun.com>]
+
   *) mod_ssl: Added server name indication support (RFC 4366).
      PR 34607. [Kaspar Brand <asfbugz velox.ch>]
 
index 8d0e12d4a1e5c0d369b34b1ca25ed299839e2235..2126aaf9881c71c9a15e0b124ee1b3e00b18b488 100644 (file)
@@ -4412,6 +4412,10 @@ static int hook_uri2file(request_rec *r)
                 return HTTP_FORBIDDEN;
             }
 
+            if (rulestatus == ACTION_NOESCAPE) {
+                apr_table_setn(r->notes, "proxy-nocanon", "1");
+            }
+
             /* make sure the QUERY_STRING and
              * PATH_INFO parts get incorporated
              */