From 05202ceceacf1cc448ba7e84601871b39879eea1 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Mon, 13 Mar 2023 21:22:09 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_rewrite.xml | 5 +++++ docs/manual/rewrite/flags.xml | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) 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.

-- 2.47.3