httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: apache-1.3/src/main http_core.c
Date Wed, 12 May 2004 18:21:23 GMT
jim         2004/05/12 11:21:23

  Modified:    src      CHANGES
               src/main http_core.c
  Log:
  Temporary solution: make honoring the physical port number
  a compile-time option.
  
  Revision  Changes    Path
  1.1940    +8 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1939
  retrieving revision 1.1940
  diff -u -r1.1939 -r1.1940
  --- CHANGES	7 May 2004 14:43:04 -0000	1.1939
  +++ CHANGES	12 May 2004 18:21:18 -0000	1.1940
  @@ -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)
  
  
  
  1.336     +2 -0      apache-1.3/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_core.c,v
  retrieving revision 1.335
  retrieving revision 1.336
  diff -u -r1.335 -r1.336
  --- http_core.c	3 May 2004 20:15:26 -0000	1.335
  +++ http_core.c	12 May 2004 18:21:22 -0000	1.336
  @@ -847,7 +847,9 @@
            * 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 */
  
  
  

Mime
View raw message