]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_rewrite's BNEG now replaced by BNE=
authorYann Ylavic <ylavic@apache.org>
Mon, 13 Mar 2023 21:22:09 +0000 (21:22 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 13 Mar 2023 21:22:09 +0000 (21:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908360 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.xml
docs/manual/rewrite/flags.xml

index 0e196a9dbf0ccf5f32bfdeb6b42c06bccc5081d7..dff26d97c2a4aa7423a3031bc5d502e7107392e2 100644 (file)
@@ -1341,6 +1341,11 @@ cannot use <code>$N</code> in the substitution string!
         <td>Like [B], but only escape control characters and spaces.
         <em><a href="../rewrite/flags.html#flag_bctls">details ...</a></em></td>
     </tr>
+    <tr>
+        <td>BNE</td>
+        <td>Characters of [B] or [BCTLS] which should <strong>not</strong> be escaped.
+        <em><a href="../rewrite/flags.html#flag_bne">details ...</a></em></td>
+    </tr>
     <tr>
         <td>backrefnoplus|BNP</td>
         <td>If backreferences are being escaped, spaces should be escaped to
index 898cb868c28e8252eabc2d8833208d3bab09a9fd..d303e4cc59930aa275c7a9387b8da4cdfef39896 100644 (file)
@@ -157,16 +157,15 @@ RewriteRule "^search/(.*)$" "/search.php/$1" "[BCTLS]"
 
 </section>
 
-<section id="flag_bneg"><title>BNEG</title>
-<p>The [BNEG] flag modifies the behavior of escaping when the
-the [B] flag is used with a list of specific characters to escape.
-When [BNEG] is specified, the list of characters passed with [B=...]
-are treated as exclusions to the list of characters to be escaped.
+<section id="flag_bne"><title>BNE</title>
+<p>The list of characters in [BNE=...] are treated as exclusions to the
+characters of the [B] or [BCTLS] flags. The listed characters will not be
+escaped.
 </p>
 
 <highlight language="config">
 # Escape the default characters, but leave /
-RewriteRule "^search/(.*)$" "/search.php?term=$1" "[B=/,BNEG]"
+RewriteRule "^search/(.*)$" "/search.php?term=$1" "[B,BNE=/]"
 </highlight>
 
 <p>This flag is available in version 2.5.1 and later.</p>