Why FILTER_VALIDATE_URL return FALSE for only this url?
- by Axel
Hi,
i have the following code:
<?php
$pictureurl="http://icons3.iconfinder.netdna-cdn.com/data/icons/pool/poolbird.png";
if(filter_var($pictureurl, FILTER_VALIDATE_URL) === FALSE){
echo "Invalid Url";
exit;
}else{
echo "Works!";
}
?>
This display "invalid url" for the above url, but not for other simpler urls. Is this a bug? you can even access the image.
And the most important is what's the solution for this?
Thanks