return false on empty string for active url.
This commit is contained in:
@@ -581,7 +581,7 @@ class Validator {
|
||||
{
|
||||
$url = str_replace(array('http://', 'https://', 'ftp://'), '', Str::lower($value));
|
||||
|
||||
return checkdnsrr($url);
|
||||
return (trim($url) !== '') ? checkdnsrr($url) : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user