From: Rich Bowen Date: Mon, 29 Jan 2024 14:24:31 +0000 (+0000) Subject: Clarifies advice around quoting regular expressions. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f96e9e7208887730c2de9284063ab614bf71931;p=thirdparty%2Fapache%2Fhttpd.git Clarifies advice around quoting regular expressions. Submitted by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com> Github: closes #379 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1915443 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en.utf8 b/docs/manual/mod/mod_rewrite.html.en.utf8 index 44e73c8ad5b..a8cac2d2965 100644 --- a/docs/manual/mod/mod_rewrite.html.en.utf8 +++ b/docs/manual/mod/mod_rewrite.html.en.utf8 @@ -1628,4 +1628,4 @@ if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); } //--> - \ No newline at end of file + diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 9f4200e3dcd..160f3a8df99 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -49,6 +49,9 @@ URLs on the fly sub-processing, external request redirection, or internal proxy throughput.

+

A regular expression only needs quoting if it contains unescaped space, + in which case single and double quotes are equivalent.

+

Further details, discussion, and examples, are provided in the detailed mod_rewrite documentation.

diff --git a/docs/manual/mod/mod_setenvif.html.en.utf8 b/docs/manual/mod/mod_setenvif.html.en.utf8 index 943dc789bd1..ed4ad5125fc 100644 --- a/docs/manual/mod/mod_setenvif.html.en.utf8 +++ b/docs/manual/mod/mod_setenvif.html.en.utf8 @@ -365,4 +365,4 @@ if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); } //--> - \ No newline at end of file + diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml index 99c302f3a39..71eebf6f266 100644 --- a/docs/manual/mod/mod_setenvif.xml +++ b/docs/manual/mod/mod_setenvif.xml @@ -59,6 +59,13 @@ BrowserMatch MSIE !netscape are not separately evaluated in the subrequest due to the API phases mod_setenvif takes action in.

+

A regular expression only needs quoting when it contains space, + in which case single and double quotes are equivalent. Unlike + mod_rewrite, mod_setenvif strips every + other backslash when parsing the expression; thus \\ + requires \\\, and \\\ requires + \\\\\.

+ Environment Variables in Apache HTTP Server