This looks like a good fix. Thanks for committing it. The only problem is that it looks like it implicitly disallows '-', '_' and international characters in hostnames. I'm wondering if it would be sufficient to simply disallow '/', since that character is needed to allow directory traversal?
peace & happiness, martin -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

