Skip to content

Commit

Permalink
Removed: getImageSize validation
Browse files Browse the repository at this point in the history
  • Loading branch information
we-vikram-wri231 committed Mar 14, 2024
1 parent 4639079 commit cad085a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Models/UserBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getAvatarAttribute() {
if($this->avatar_url)
{
$url = asset($this->avatar_url);
if (filter_var($url, FILTER_VALIDATE_URL) && @getimagesize($url)) {
if (filter_var($url, FILTER_VALIDATE_URL)) {
return $url;
} else {
return vh_get_avatar_by_email($this->email);
Expand Down

0 comments on commit cad085a

Please sign in to comment.