]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r349917 from trunk:
authorTakashi Sato <takashi@apache.org>
Fri, 9 May 2008 09:00:42 +0000 (09:00 +0000)
committerTakashi Sato <takashi@apache.org>
Fri, 9 May 2008 09:00:42 +0000 (09:00 +0000)
Escape the dots in the regular expression.

Merge r595288 from trunk:
add note on security impact of suppress-error-charset
for broken browsers

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

docs/manual/env.xml

index 9ce24f572a6980a01f15a1604146eb72184ad583..41fed5ce43afa199d18c78dc1827c54557bc0297 100644 (file)
     set for the redirection text, and these broken browsers will then correctly
     use that of the destination page.</p>
 
+    <note type="warning">
+      <title>Security note</title> 
+
+      <p>Sending error pages without a specified character set may
+      allow a cross-site-scripting attack for existing browsers (MSIE)
+      which do not follow the HTTP/1.1 specification and attempt to
+      "guess" the character set from the content.  Such browsers can
+      be easily fooled into using the UTF-7 character set, and UTF-7
+      content from input data (such as the request-URI) will not be
+      escaped by the usual escaping mechanisms designed to prevent
+      cross-site-scripting attacks.</p>
+    </note>
+
    </section>
 
    <section id="proxy"><title>force-proxy-request-1.0, proxy-nokeepalive, proxy-sendchunked, proxy-sendcl</title>
@@ -436,7 +449,7 @@ CustomLog logs/access_log common env=!image-request</pre></example>
         in limited circumstances. We assume that all your images are in
         a directory called /web/images.</p>
     <example><pre>
-SetEnvIf Referer "^http://www.example.com/" local_referal
+SetEnvIf Referer "^http://www\.example\.com/" local_referal
 # Allow browsers that do not send Referer info
 SetEnvIf Referer "^$" local_referal
 &lt;Directory /web/images&gt;