Skip to content

Commit

Permalink
Update e_parse_class.php
Browse files Browse the repository at this point in the history
Changed file_exists to fopen, to check if remote file exists
  • Loading branch information
rica-carv authored May 11, 2024
1 parent cc41528 commit bcaad61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_handlers/e_parse_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4315,7 +4315,7 @@ public function toAvatar($userData = null, $options = array())

if (strpos($image, '://') !== false) // Remote Image
{
if (file_exists($image))
if (@fopen($image, 'r'))
{
$url = $image;
}
Expand Down

0 comments on commit bcaad61

Please sign in to comment.