return false on empty string for active url.
This commit is contained in:
parent
cd9a745cb5
commit
19c64f1ea7
|
@ -581,7 +581,7 @@ protected function validate_active_url($attribute, $value)
|
|||
{
|
||||
$url = str_replace(array('http://', 'https://', 'ftp://'), '', Str::lower($value));
|
||||
|
||||
return checkdnsrr($url);
|
||||
return (trim($url) !== '') ? checkdnsrr($url) : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue