Commit 19c64f1e authored by Taylor Otwell's avatar Taylor Otwell

return false on empty string for active url.

parent cd9a745c
......@@ -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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment