Maybe I'm wrong. But I think this is not true. Is it?
if(\Nette\Utils\Validators::isUrl('http://xxxx')) echo 'URL is valid';
Last edited by pawouk (2013-06-24 16:14)
What about http://localhost/?
http://localhost/
it is true
It returns false for one character long “domain”. (Nette v2.0.12)
Nette\Utils\Validators::isUrl('http://l');
I'm not sure if it is bug or it's not valid url (by some rfc).