httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@Fujitsu-Siemens.com>
Subject Re: cvs commit: apache-1.3/src/main http_vhost.c
Date Tue, 23 Jan 2001 14:45:52 GMT
In URL's, the port was optional, as in 

   http://blah.host:/path

Is it guaranteed that the string "blah.host:" is never propagated
into a Host: header?

   Martin

On Tue, Jan 23, 2001 at 02:14:07PM -0000, fanf@apache.org wrote:
>   +        if (*src == ':') {
>   +            /* check the port part */
>   +            while (*++src) {
>   +                if (!ap_isdigit(*src)) {
>   +                    goto bad;
>   +                }
>   +            }
>   +            if (src[-1] == ':')
>   +                goto bad;
>   +            else
>   +                break;
>   +        }
-- 
<Martin.Kraemer@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <martin@apache.org>              |   81730  Munich,  Germany

Mime
View raw message