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
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ protected function validate_active_url($attribute, $value)
{ {
$url = str_replace(array('http://', 'https://', 'ftp://'), '', Str::lower($value)); $url = str_replace(array('http://', 'https://', 'ftp://'), '', Str::lower($value));
return checkdnsrr($url); return (trim($url) !== '') ? checkdnsrr($url) : false;
} }
/** /**