From 3337550ed5872461b7ea32925d8b719efc552b2c Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Sun, 28 Jul 2019 18:22:23 +0200 Subject: [PATCH] Fixed issue https://github.com/phalcon/incubator/issues/907 --- Library/Phalcon/Avatar/Gravatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Phalcon/Avatar/Gravatar.php b/Library/Phalcon/Avatar/Gravatar.php index 703635338..f7bda45d5 100644 --- a/Library/Phalcon/Avatar/Gravatar.php +++ b/Library/Phalcon/Avatar/Gravatar.php @@ -201,7 +201,7 @@ public function setDefaultImage($image) $default = strtolower(trim($image)); if (!isset($this->validDefaults[$default])) { - if (!filter_var($image, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED)) { + if (!filter_var($image, FILTER_VALIDATE_URL)) { throw new InvalidArgumentException( 'The default image specified is not a recognized gravatar "default" and is not a valid URL' );