diff --git a/laravel/validator.php b/laravel/validator.php index 968e94b7..3bc4d703 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -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; } /**