]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Clarifies advice around quoting regular expressions.
authorRich Bowen <rbowen@apache.org>
Mon, 29 Jan 2024 14:24:31 +0000 (14:24 +0000)
committerRich Bowen <rbowen@apache.org>
Mon, 29 Jan 2024 14:24:31 +0000 (14:24 +0000)
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

docs/manual/mod/mod_rewrite.html.en.utf8
docs/manual/mod/mod_rewrite.xml
docs/manual/mod/mod_setenvif.html.en.utf8
docs/manual/mod/mod_setenvif.xml

index 44e73c8ad5b14b5f40e3c9ca7681b7aae52f62dc..a8cac2d29655451219eb4f5455e181c5e15837ae 100644 (file)
@@ -1628,4 +1628,4 @@ if (typeof(prettyPrint) !== 'undefined') {
     prettyPrint();
 }
 //--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>
index 9f4200e3dcd415d85f03dca57d1c4ead7e84ee1e..160f3a8df997433147d7d54d8e630f0c07c5a112 100644 (file)
@@ -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>
index 943dc789bd1a780cd08c98564c6993a2b4f9dc0d..ed4ad5125fc4f3113634f51054e19f020ead0184 100644 (file)
@@ -365,4 +365,4 @@ if (typeof(prettyPrint) !== 'undefined') {
     prettyPrint();
 }
 //--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>
index 99c302f3a393395fac24787a5e84c18cd902baef..71eebf6f2665ce4bf1b9be6e11b63145afa177c1 100644 (file)
@@ -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>