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
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95866
13f79535-47bb-0310-9956-
ffa450edef68
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
else if (*dst == '/' || *dst == '\\') {
goto bad;
}
+ else if (apr_isalpha(*dst)) {
+ *dst = apr_tolower(*dst);
+ }
}
/* strip trailing gubbins */
if (dst > host && dst[-1] == '.') {