You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2024/01/29 14:24:31 UTC

svn commit: r1915443 - in /httpd/httpd/trunk/docs/manual/mod: mod_rewrite.html.en.utf8 mod_rewrite.xml mod_setenvif.html.en.utf8 mod_setenvif.xml

Author: rbowen
Date: Mon Jan 29 14:24:31 2024
New Revision: 1915443

URL: http://svn.apache.org/viewvc?rev=1915443&view=rev
Log:
Clarifies advice around quoting regular expressions.

Submitted by: nisbet-hubbard <87...@users.noreply.github.com>

Github: closes #379

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en.utf8
    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
    httpd/httpd/trunk/docs/manual/mod/mod_setenvif.html.en.utf8
    httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en.utf8
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en.utf8?rev=1915443&r1=1915442&r2=1915443&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en.utf8 [utf-8] (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en.utf8 [utf-8] Mon Jan 29 14:24:31 2024
@@ -1628,4 +1628,4 @@ if (typeof(prettyPrint) !== 'undefined')
     prettyPrint();
 }
 //--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>

Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?rev=1915443&r1=1915442&r2=1915443&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Mon Jan 29 14:24:31 2024
@@ -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>

Modified: httpd/httpd/trunk/docs/manual/mod/mod_setenvif.html.en.utf8
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_setenvif.html.en.utf8?rev=1915443&r1=1915442&r2=1915443&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_setenvif.html.en.utf8 [utf-8] (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_setenvif.html.en.utf8 [utf-8] Mon Jan 29 14:24:31 2024
@@ -365,4 +365,4 @@ if (typeof(prettyPrint) !== 'undefined')
     prettyPrint();
 }
 //--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>

Modified: httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml?rev=1915443&r1=1915442&r2=1915443&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml Mon Jan 29 14:24:31 2024
@@ -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>