From: Nick Kew Date: Sat, 9 Jan 2010 22:32:48 +0000 (+0000) Subject: Backport r807015 X-Git-Tag: 2.2.15~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a29a7ab38019a169b7092187303614b604df14db;p=thirdparty%2Fapache%2Fhttpd.git Backport r807015 PR 35999 - preserve port over internal redirection Patch by Jonas Ringh Reviewed niq, covener, sf git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@897568 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index b22514f5247..e44d6494d41 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,9 @@ Changes with Apache 2.2.15 access control is still vulnerable, unless using OpenSSL >= 0.9.8l. [Joe Orton, Ruediger Pluem, Hartmut Keil ] + *) Preserve Port information over internal redirects + PR 35999 [Jonas Ringh ] + *) mod_filter: fix FilterProvider matching where "dispatch" string doesn't exist. PR 48054 [] diff --git a/STATUS b/STATUS index e6657e4fbfe..b18e300b253 100644 --- a/STATUS +++ b/STATUS @@ -87,11 +87,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * http_request: preserve port over internal redirect. - PR 35999 - Patch: http://svn.apache.org/viewvc?view=revision&revision=807015 - +1: niq, covener, sf - PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/modules/http/http_request.c b/modules/http/http_request.c index fe10a196220..d10ec3cb893 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -353,6 +353,8 @@ static request_rec *internal_internal_redirect(const char *new_uri, new->method_number = r->method_number; new->allowed_methods = ap_make_method_list(new->pool, 2); ap_parse_uri(new, new_uri); + new->parsed_uri.port_str = r->parsed_uri.port_str; + new->parsed_uri.port = r->parsed_uri.port; new->request_config = ap_create_request_config(r->pool);