"Octavian Rasnita" <[EMAIL PROTECTED]> writes:

> I saw that the URI module returns a $uri -> host even though the URL used is
> not a correct one.
> 
> For example I've seen bad addresses like:
> 
> http://www:site.com/
> 
> This is a wrong address but the host method returns "www:site.com".
> 
> I think it is a good idea to return a null value instead.

What RE do you suggest to apply to validate hostnames?

Regards,
Gisle

Reply via email to