httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/server vhost.c
Date Sun, 23 Jun 2002 08:10:49 GMT
brianp      2002/06/23 01:10:49

  Modified:    .        CHANGES
               server   vhost.c
  Log:
  Convert the hostname to all-lowercase in fix_hostname() so that
  the implementation matches the comments.  (Note: The current virtual
  hosting code does case-insensitive host matching, so this fix is useful
  mostly to help ensure that custom modules and any future vhosting code
  don't get tripped up by case-sensitivity issues.)
  Submitted by:	Perry Harrington <pedward@webcom.com>
  Reviewed by:	Brian Pane
  
  Revision  Changes    Path
  1.847     +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.846
  retrieving revision 1.847
  diff -u -r1.846 -r1.847
  --- CHANGES	23 Jun 2002 07:56:41 -0000	1.846
  +++ CHANGES	23 Jun 2002 08:10:48 -0000	1.847
  @@ -1,5 +1,8 @@
   Changes with Apache 2.0.40
   
  +  *) Normalize the hostname value in the request_rec to all-lowercase
  +     [Perry Harrington <pedward@webcom.com>]
  +
     *) Fix Win32 cgi 500 errors when QUERY_ARGS or other strings include
        extended characters (non US-ASCII) in non-utf8 format.  This brings
        Win32 back into CGI/1.1 compliance, and leaves charset decoding up
  
  
  
  1.76      +3 -0      httpd-2.0/server/vhost.c
  
  Index: vhost.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/vhost.c,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- vhost.c	17 May 2002 11:11:38 -0000	1.75
  +++ vhost.c	23 Jun 2002 08:10:49 -0000	1.76
  @@ -785,6 +785,9 @@
               else if (*dst == '/' || *dst == '\\') {
                   goto bad;
               }
  +            else if (apr_isalpha(*dst)) {
  +                *dst = apr_tolower(*dst);
  +            }
           }
           /* strip trailing gubbins */
           if (dst > host && dst[-1] == '.') {
  
  
  

Mime
View raw message