httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From orlikow...@apache.org
Subject cvs commit: apache-1.3/src/main util_uri.c
Date Wed, 04 Apr 2001 06:56:29 GMT
orlikowski    01/04/03 23:56:29

  Modified:    src/main util_uri.c
  Log:
  Needed to check this, but ap_parse_uri_components was not ensuring that
  the parsed uri's port field was set. This one-liner takes care of that.
  Reviewed by: Chuck Murcko <chuck@topsail.org>
  
  Revision  Changes    Path
  1.34      +1 -0      apache-1.3/src/main/util_uri.c
  
  Index: util_uri.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/util_uri.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- util_uri.c	2001/04/04 01:01:45	1.33
  +++ util_uri.c	2001/04/04 06:56:28	1.34
  @@ -421,6 +421,7 @@
           if (s == NULL) {
               /* we expect the common case to have no port */
               uptr->hostname = ap_pstrndup(p, hostinfo, uri - hostinfo);
  +            uptr->port = uptr->scheme ? ap_default_port_for_scheme(uptr->scheme)
: DEFAULT_HTTP_PORT;
               goto deal_with_path;
           }
           uptr->hostname = ap_pstrndup(p, hostinfo, s - hostinfo);
  
  
  

Mime
View raw message