Old code simply checked if it was non-zero, not if it
was *valid*
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101774
13f79535-47bb-0310-9956-
ffa450edef68
* URLs using the hostname and port supplied by the client if
* any are supplied (otherwise it will use the canonical name).
*/
- port = r->parsed_uri.port ? r->parsed_uri.port :
+ port = r->parsed_uri.port_str ? r->parsed_uri.port :
r->connection->local_addr->port ? r->connection->local_addr->port :
r->server->port ? r->server->port :
ap_default_port(r);