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


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brian Pane
2002-06-23 08:10:49 +00:00
parent 4de557782a
commit f24fa31695
2 changed files with 6 additions and 0 deletions

View File

@ -785,6 +785,9 @@ static void fix_hostname(request_rec *r)
else if (*dst == '/' || *dst == '\\') {
goto bad;
}
else if (apr_isalpha(*dst)) {
*dst = apr_tolower(*dst);
}
}
/* strip trailing gubbins */
if (dst > host && dst[-1] == '.') {