From: Vincent Bray Date: Tue, 18 Sep 2007 17:09:55 +0000 (+0000) Subject: Add a few '/' and remove an errant '>'. X-Git-Tag: 2.3.0~1409 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43ce7e3b2a885a10a183ae5b3369a1b86cf6aa31;p=apache Add a few '/' and remove an errant '>'. Note that this changes a patch proposed for backport to 2.2 (PR34602 & r573831). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@576979 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index b7649afc41..7f06d7a8d7 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1267,11 +1267,11 @@ cannot use $N in the substitution string! Using the B flag, non-alphanumeric characters in backreferences will be escaped. For example, consider the rule:

 RewriteRule RewriteRule ^(.*)$   index.php?show=$1 
-

This will map /C++ to index.php?show=C++. +

This will map /C++ to index.php?show=/C++. But it will also map /C%2b%2b to - index.php?show=C++, because the %2b + index.php?show=/C++, because the %2b has been unescaped. With the B flag, it will instead map to - index.php?show=>/C%2b%2b.

+ index.php?show=/C%2b%2b.

This escaping is particularly necessary in a proxy situation, when the backend may break if presented with an unescaped URL.