|
|
@ -398,7 +398,7 @@ function validate_url(&$url) { |
|
|
|
if(substr($url,0,4) != 'http') |
|
|
|
$url = 'http://' . $url; |
|
|
|
|
|
|
|
// @TODO Really supress function outcomes? Why not find them + debug them?
|
|
|
|
/// @TODO Really supress function outcomes? Why not find them + debug them?
|
|
|
|
$h = @parse_url($url); |
|
|
|
|
|
|
|
if((is_array($h)) && (dns_get_record($h['host'], DNS_A + DNS_CNAME + DNS_PTR) || filter_var($h['host'], FILTER_VALIDATE_IP) )) { |
|
|
|