]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r822004 from trunk:
authorStefan Fritsch <sf@apache.org>
Mon, 2 Nov 2009 21:59:04 +0000 (21:59 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 2 Nov 2009 21:59:04 +0000 (21:59 +0000)
mod_rewrite: Make sure that a hostname:port isn't fully qualified if
the request is a CONNECT request.

Submitted by: Bill Zajac <billz consultla.com>
Reviewed by: sf, minfrin, covener

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

CHANGES
STATUS
modules/mappers/mod_rewrite.c

diff --git a/CHANGES b/CHANGES
index 6880c40054a23628285759e358ad5a488f45f172..bdcfc9906fcfb70d6eef874da319809fbb1038cb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.15
 
+  *) mod_rewrite: Make sure that a hostname:port isn't fully qualified if
+     the request is a CONNECT request. [Bill Zajac <billz consultla.com>]
+
   *) mod_cache: correctly consider s-maxage in cacheability
      decisions.  [Dan Poirier]
 
diff --git a/STATUS b/STATUS
index 64c933a3c4525fd3692b707808cac65ffcfae2db..2ea6b0c041768b0c9c8bd553012a232aec4054f4 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -87,11 +87,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
- * mod_rewrite: don't fully qualify hostname:port if the request is a CONNECT
-                request
-   Trunk Patch: http://svn.apache.org/viewvc?view=rev&revision=822004
-   2.2.x Patch: trunk patch works
-   +1: sf, minfrin, covener
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index e92c440986d7440a6bd66a84f07169638aa3630f..d5bd56797ebd7306164dfeefab3fa08a5acdf7d1 100644 (file)
@@ -845,7 +845,10 @@ static void reduce_uri(request_rec *r)
  */
 static void fully_qualify_uri(request_rec *r)
 {
-    if (!is_absolute_uri(r->filename)) {
+    if (r->method_number == M_CONNECT) {
+        return;
+    }
+    else if (!is_absolute_uri(r->filename)) {
         const char *thisserver;
         char *thisport;
         int port;