Skip to content

Commit cad085a

Browse files
Removed: getImageSize validation
1 parent 4639079 commit cad085a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Models/UserBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getAvatarAttribute() {
9393
if($this->avatar_url)
9494
{
9595
$url = asset($this->avatar_url);
96-
if (filter_var($url, FILTER_VALIDATE_URL) && @getimagesize($url)) {
96+
if (filter_var($url, FILTER_VALIDATE_URL)) {
9797
return $url;
9898
} else {
9999
return vh_get_avatar_by_email($this->email);

0 commit comments

Comments
 (0)