httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/server vhost.c
Date Mon, 18 Mar 2002 01:43:18 GMT
brianp      02/03/17 17:43:18

  Modified:    server   vhost.c
  Log:
  Fix for vhosts where the hostname is followed by '.'
  PR: 9187
  Submitted by:	Ryan Cruse <ryan@estara.com>
  
  Revision  Changes    Path
  1.72      +2 -2      httpd-2.0/server/vhost.c
  
  Index: vhost.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/vhost.c,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- vhost.c	15 Mar 2002 17:47:48 -0000	1.71
  +++ vhost.c	18 Mar 2002 01:43:17 -0000	1.72
  @@ -773,9 +773,9 @@
       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;
  
  
  

Mime
View raw message