Browse Source

return false on empty string for active url.

Taylor Otwell 12 years ago
parent
commit
19c64f1ea7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/validator.php

+ 1 - 1
laravel/validator.php

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