diff options
author | Brian Pane <brianp@apache.org> | 2002-03-18 01:43:17 +0000 |
---|---|---|
committer | Brian Pane <brianp@apache.org> | 2002-03-18 01:43:17 +0000 |
commit | d2fdf5ba21a65c8e3a0ca301ae4f87744347dd4a (patch) | |
tree | ced69171991691582a9b47f5ed6ef5fed1208e77 /server | |
parent | 5c1259758f1c21acaa82c2355835da030c2828ac (diff) | |
download | httpd-d2fdf5ba21a65c8e3a0ca301ae4f87744347dd4a.tar.gz |
Fix for vhosts where the hostname is followed by '.'
PR: 9187
Submitted by: Ryan Cruse <ryan@estara.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93988 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/vhost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/vhost.c b/server/vhost.c index e7b34c62c3..07ea8c4f5e 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -773,9 +773,9 @@ static void fix_hostname(request_rec *r) if (r->hostname[0] != '[') { for (dst = host; *dst; dst++) { if (*dst == '.') { - dst++; - if (*dst == '.') + if (*(dst + 1) == '.') { goto bad; + } } else if (*dst == '/' || *dst == '\\') { goto bad; |