Skip to content

Commit

Permalink
Fixed issue phalcon#907
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudboon committed Aug 30, 2019
1 parent 39d5bc8 commit 3337550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Phalcon/Avatar/Gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand Down

0 comments on commit 3337550

Please sign in to comment.