From: Jim Jagielski Date: Mon, 29 Mar 2004 17:53:09 +0000 (+0000) Subject: Shove some things along... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49705c266cd039b18a7537333ab49210e33191f2;p=thirdparty%2Fapache%2Fhttpd.git Shove some things along... PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@103192 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index b0d940a38c1..10f4ed05ed6 100644 --- a/STATUS +++ b/STATUS @@ -1,5 +1,5 @@ APACHE 1.3 STATUS: -*-text-*- - Last modified at [$Date: 2004/03/25 14:14:11 $] + Last modified at [$Date: 2004/03/29 17:53:09 $] Release: @@ -46,9 +46,9 @@ Release: 2.0 : Available for general use, see httpd-2.0 repository RELEASE SHOWSTOPPERS: - * Port value in Host: header ignored for UseCanonicalName != On. - Message-Id: <36DFE9DE-7924-11D8-9C02-000393D76AB8@jaguNET.com> - <200403221440.i2MEeoJ15923@devsys.jaguNET.com> + + * PR: 27023 Cookie could not delivered if the cookie made before + proxy module. RELEASE NON-SHOWSTOPPERS BUT WOULD BE REAL NICE TO WRAP THESE UP: diff --git a/src/main/http_vhost.c b/src/main/http_vhost.c index 44af8fe8fd2..b69c55d8680 100644 --- a/src/main/http_vhost.c +++ b/src/main/http_vhost.c @@ -662,6 +662,7 @@ static void fix_hostname(request_rec *r) char *host = ap_palloc(r->pool, strlen(r->hostname) + 1); const char *src; char *dst; + char *port_str; /* check and copy the host part */ src = r->hostname; @@ -679,6 +680,7 @@ static void fix_hostname(request_rec *r) goto bad; } if (*src == ':') { + port_str = src + 1; /* check the port part */ while (*++src) { if (!ap_isdigit(*src)) { @@ -687,8 +689,12 @@ static void fix_hostname(request_rec *r) } if (src[-1] == ':') goto bad; - else + else { + /* a known "good" port value */ + r->parsed_uri.port_str = ap_pstrdup(r->pool, port_str); + r->parsed_uri.port = atoi(r->parsed_uri.port_str); break; + } } *dst++ = *src++; }