]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
merge r603346 from trunk:
authorJeff Trawick <trawick@apache.org>
Sat, 15 Dec 2007 13:32:51 +0000 (13:32 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 15 Dec 2007 13:32:51 +0000 (13:32 +0000)
  http_protocol: Escape request method in 405 error reporting.
  This has no security impact since the browser cannot be tricked
  into sending arbitrary method strings.

Reviewed by: wrowe, rpluem

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

CHANGES
STATUS
modules/http/http_protocol.c

diff --git a/CHANGES b/CHANGES
index a44cfe5d4ac0958fe148bd17b340fc4b4102f042..9e5e3002569f6caefe4112100243cda66f257616 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.0.62
 
+  *) http_protocol: Escape request method in 405 error reporting.
+     This has no security impact since the browser cannot be tricked
+     into sending arbitrary method strings.  [Jeff Trawick]
+
   *) http_protocol: Escape request method in 413 error reporting.
      Determined to be not generally exploitable, but a flaw in any case.
      PR 44014 [Victor Stinner <victor.stinner inl.fr>]
diff --git a/STATUS b/STATUS
index edddadc25c821768291a8f69b6fab758085427f5..511ec53d6408b9bf8937ede3ffe43c1bc022286b 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -129,13 +129,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  * http_protocol: Escape request method in 405 error reporting.
-    Trunk:
-      http://svn.apache.org/viewvc?view=rev&revision=603346
-    2.0.x:
-      Trunk patch applies.
-    +1: trawick, wrowe, rpluem
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ please place SVN revisions from trunk here, so it is easy to
     identify exactly what the proposed changes are!  Add all new
index d521842b7b68f8ba5815d3aa2f08c672b3214069..deff80bc399b9d95e4c935d19602099633507328 100644 (file)
@@ -2182,7 +2182,8 @@ static const char *get_canned_error_string(int status,
                            NULL));
     case HTTP_METHOD_NOT_ALLOWED:
         return(apr_pstrcat(p,
-                           "<p>The requested method ", r->method,
+                           "<p>The requested method ",
+                           ap_escape_html(r->pool, r->method),
                            " is not allowed for the URL ",
                            ap_escape_html(r->pool, r->uri),
                            ".</p>\n",