From: Brian Pane Date: Mon, 18 Mar 2002 01:43:17 +0000 (+0000) Subject: Fix for vhosts where the hostname is followed by '.' X-Git-Tag: CHANGES~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2fdf5ba21a65c8e3a0ca301ae4f87744347dd4a;p=apache Fix for vhosts where the hostname is followed by '.' PR: 9187 Submitted by: Ryan Cruse git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93988 13f79535-47bb-0310-9956-ffa450edef68 --- 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;