Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 50292 invoked by uid 500); 23 Jun 2002 08:10:50 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 50272 invoked by uid 500); 23 Jun 2002 08:10:49 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 23 Jun 2002 08:10:49 -0000 Message-ID: <20020623081049.53721.qmail@icarus.apache.org> From: brianp@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/server vhost.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 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 ] + *) 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] == '.') {