summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-03-13 22:22:09 +0100
committerYann Ylavic <ylavic@apache.org>2023-03-13 22:22:09 +0100
commit05202ceceacf1cc448ba7e84601871b39879eea1 (patch)
treec399eb40aac4352c4e56a4ebd674ddaf3ef00730
parentmod_rewrite: Follow up to r1908347: Use [B, BNE=...] rather than [B=...,BNEG]. (diff)
downloadapache2-05202ceceacf1cc448ba7e84601871b39879eea1.tar.xz
apache2-05202ceceacf1cc448ba7e84601871b39879eea1.zip
mod_rewrite's BNEG now replaced by BNE=
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908360 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/manual/mod/mod_rewrite.xml5
-rw-r--r--docs/manual/rewrite/flags.xml11
2 files changed, 10 insertions, 6 deletions
diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml
index 0e196a9dbf..dff26d97c2 100644
--- a/docs/manual/mod/mod_rewrite.xml
+++ b/docs/manual/mod/mod_rewrite.xml
@@ -1342,6 +1342,11 @@ cannot use <code>$N</code> in the substitution string!
<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
%20 instead of +. Useful when the backreference will be used in the
diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml
index 898cb868c2..d303e4cc59 100644
--- a/docs/manual/rewrite/flags.xml
+++ b/docs/manual/rewrite/flags.xml
@@ -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>