summaryrefslogtreecommitdiffstats
path: root/docs/manual
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2024-01-29 15:24:31 +0100
committerRich Bowen <rbowen@apache.org>2024-01-29 15:24:31 +0100
commit6f96e9e7208887730c2de9284063ab614bf71931 (patch)
treea4ae122b1040464b115b5a5aa8cae1e1bdffb904 /docs/manual
parentfill in empty descriptions from command_rec (diff)
downloadapache2-6f96e9e7208887730c2de9284063ab614bf71931.tar.xz
apache2-6f96e9e7208887730c2de9284063ab614bf71931.zip
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
Diffstat (limited to 'docs/manual')
-rw-r--r--docs/manual/mod/mod_rewrite.html.en.utf82
-rw-r--r--docs/manual/mod/mod_rewrite.xml3
-rw-r--r--docs/manual/mod/mod_setenvif.html.en.utf82
-rw-r--r--docs/manual/mod/mod_setenvif.xml7
4 files changed, 12 insertions, 2 deletions
diff --git a/docs/manual/mod/mod_rewrite.html.en.utf8 b/docs/manual/mod/mod_rewrite.html.en.utf8
index 44e73c8ad5..a8cac2d296 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();
}
//--><!]]></script>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml
index 9f4200e3dc..160f3a8df9 100644
--- a/docs/manual/mod/mod_rewrite.xml
+++ b/docs/manual/mod/mod_rewrite.xml
@@ -49,6 +49,9 @@ URLs on the fly</description>
sub-processing, external request redirection, or internal proxy
throughput.</p>
+ <p>A regular expression only needs quoting if it contains unescaped space,
+ in which case single and double quotes are equivalent.</p>
+
<p>Further details, discussion, and examples, are provided in the
<a href="../rewrite/">detailed mod_rewrite documentation</a>.</p>
</summary>
diff --git a/docs/manual/mod/mod_setenvif.html.en.utf8 b/docs/manual/mod/mod_setenvif.html.en.utf8
index 943dc789bd..ed4ad5125f 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();
}
//--><!]]></script>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml
index 99c302f3a3..71eebf6f26 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
<module>mod_setenvif</module> takes action in.</p>
+ <p>A regular expression only needs quoting when it contains space,
+ in which case single and double quotes are equivalent. Unlike
+ <module>mod_rewrite</module>, <module>mod_setenvif</module> strips every
+ other backslash when parsing the expression; thus <code>\\</code>
+ requires <code>\\\</code>, and <code>\\\</code> requires
+ <code>\\\\\</code>.</p>
+
</summary>
<seealso><a href="../env.html">Environment Variables in Apache HTTP Server</a></seealso>