On Mon, Aug 9, 2010 at 7:14 AM, Stefan de Konink <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Op 09-08-10 16:00, Ryan McIntosh schreef:
> > Since RFC 953 specifies that no distinction may be made between upper
> > and lower case letters, and RFC 2616 sec 5.2 says that invalid headers
> > should be ignored, I am curious if it wouldn't make more sense to
> > validate for ASCII characters and then lowercase the host header part
> > before attempting to match the regex and/or imply that the particular
> > regex is case insensitive.  As long as it doesn't mean special casing
> > for the host header I think that would be a more robust solution.
> >
> > Thoughts?
>
> Bad mojo... non ascii is currently also allowed as hostname.
>

Could you just lowercase the ascii characters, then?  I have no idea if
there's a readily-available function to do so, or if it would be more of a
PITA than it's worth, so forgive me if this is a stupid question.
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to