Why does filter_var()
accepts and validate this URL http://http://www.google.com
?
$website = "http://http://www.google.com";
echo filter_var($website, FILTER_VALIDATE_URL); // This outputs the value of $website
I think this is wrong. Any solution or fixed for this?
phpinfo()
http://
's. – Spillercom.ph
in the end ) – Tricksy