return false on empty string for active url.

This commit is contained in:
Taylor Otwell
2012-07-19 15:39:18 -05:00
parent cd9a745cb5
commit 19c64f1ea7

View File

@@ -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;
}
/**