From: Nick Kew Date: Fri, 11 Jan 2008 10:52:09 +0000 (+0000) Subject: mod_rewrite: Don't canonicalise URLs with [P,NE] X-Git-Tag: 2.3.0~1037 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c1e306031f01940b09ec95d272191930fb443e5;p=thirdparty%2Fapache%2Fhttpd.git mod_rewrite: Don't canonicalise URLs with [P,NE] PR 43319 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611134 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 714d1db39c0..409a4f8842b 100644 --- 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 [] + *) mod_ssl: Added server name indication support (RFC 4366). PR 34607. [Kaspar Brand ] diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 8d0e12d4a1e..2126aaf9881 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -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 */