From: Yann Ylavic Date: Mon, 13 Mar 2023 21:22:09 +0000 (+0000) Subject: mod_rewrite's BNEG now replaced by BNE= X-Git-Tag: 2.5.0-alpha2-ci-test-only~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05202ceceacf1cc448ba7e84601871b39879eea1;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 0e196a9dbf0..dff26d97c2a 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1341,6 +1341,11 @@ cannot use $N in the substitution string! Like [B], but only escape control characters and spaces. details ... + + BNE + Characters of [B] or [BCTLS] which should not be escaped. + details ... + backrefnoplus|BNP If backreferences are being escaped, spaces should be escaped to diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index 898cb868c28..d303e4cc599 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -157,16 +157,15 @@ RewriteRule "^search/(.*)$" "/search.php/$1" "[BCTLS]" -
BNEG -

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. +

BNE +

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.

# Escape the default characters, but leave / -RewriteRule "^search/(.*)$" "/search.php?term=$1" "[B=/,BNEG]" +RewriteRule "^search/(.*)$" "/search.php?term=$1" "[B,BNE=/]"

This flag is available in version 2.5.1 and later.