mirror of
https://github.com/apache/httpd.git
synced 2025-08-15 23:27:39 +00:00
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:
@ -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] == '.') {
|
||||
|
Reference in New Issue
Block a user