]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
document the mod_userdir-like tilde expansion sometimes performed by mod_rewrite
authorEric Covener <covener@apache.org>
Wed, 19 Sep 2007 13:50:35 +0000 (13:50 +0000)
committerEric Covener <covener@apache.org>
Wed, 19 Sep 2007 13:50:35 +0000 (13:50 +0000)
A tilde can sneak into a rule via a backreference and cause some surprising behavior

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@577305 13f79535-47bb-0310-9956-ffa450edef68

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

index 3b19068c3476859da20102055423916188b73ad5..56d13927a4a761a11de69783149570db76257736 100644 (file)
@@ -1489,6 +1489,17 @@ cannot use <code>$N</code> in the substitution string!
 
       </ul>
 
+<div class="note"><h3>Home directory expansion</h3>
+<p> When the substitution string begins with a string
+resembling "/~user" (via explicit text or backreferences), mod_rewrite performs
+home directory expansion independent of the presence or configuration
+of <code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code>.</p>
+
+<p> This expansion does not occur when the <em>PT</em>
+flag is used on the <code class="directive"><a href="#rewriterule">RewriteRule</a></code>
+directive.</p>
+</div>
+
 <div class="note"><h3>Note: Enabling rewrites in per-directory context</h3>
  To enable the rewriting engine
           for per-directory configuration files, you need to set
index 2265ccca78049bfea21551c4db94d09c08a059f3..9971f67b26fc018faa4957a8863de908d80516f8 100644 (file)
@@ -1512,6 +1512,17 @@ cannot use <code>$N</code> in the substitution string!
 
       </ul>
 
+<note><title>Home directory expansion</title>
+<p> When the substitution string begins with a string
+resembling "/~user" (via explicit text or backreferences), mod_rewrite performs
+home directory expansion independent of the presence or configuration
+of <module>mod_userdir</module>.</p>
+
+<p> This expansion does not occur when the <em>PT</em>
+flag is used on the <directive module="mod_rewrite">RewriteRule</directive>
+directive.</p>
+</note>
+
 <note><title>Note: Enabling rewrites in per-directory context</title>
  To enable the rewriting engine
           for per-directory configuration files, you need to set