From: Jim Jagielski Date: Wed, 12 May 2004 18:21:22 +0000 (+0000) Subject: Temporary solution: make honoring the physical port number X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27cd390448311674a33d95ca13ce12b8895bc277;p=thirdparty%2Fapache%2Fhttpd.git Temporary solution: make honoring the physical port number a compile-time option. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@103662 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/CHANGES b/src/CHANGES index c86213fdc52..3537d42048e 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -1,5 +1,13 @@ Changes with Apache 1.3.32 + *) COMPATIBILITY: Added new compile-time flag: UCN_OFF_HONOR_PHYSICAL_PORT. + It controls how UseCanonicalName Off determines the port value if + the client doesn't provide one in the Host header. If defined during + compilation, UseCanonicalName Off will use the physical port number to + generate the canonical name. If not defined, it trys the current Port + value followed by the default port for the current scheme. + [Jim Jagielski] + Changes with Apache 1.3.31 *) SECURITY: CAN-2003-0987 (cve.mitre.org) diff --git a/src/main/http_core.c b/src/main/http_core.c index 5e3a714f1c6..38d7982af08 100644 --- a/src/main/http_core.c +++ b/src/main/http_core.c @@ -847,7 +847,9 @@ API_EXPORT(unsigned) ap_get_server_port(const request_rec *r) * any are supplied (otherwise it will use the canonical name). */ port = r->parsed_uri.port_str ? r->parsed_uri.port : +#ifdef UCN_OFF_HONOR_PHYSICAL_PORT cport ? cport : +#endif r->server->port ? r->server->port : ap_default_port(r); } else { /* d->use_canonical_name == USE_CANONICAL_NAME_ON */