Skip to content

Commit

Permalink
Fixes bug where uploaded avatars would have two dots before extension
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Nov 13, 2023
1 parent 53097a3 commit 3dee6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -3055,7 +3055,7 @@ protected function setAvatarAttachment(string $filepath): string|null
}

// Move to its final name and location. Error on failure.
if (!$image->move($upload_dir . '/avatar_' . $this->id . '_' . time() . '.' . image_type_to_extension($image->type)))
if (!$image->move($upload_dir . '/avatar_' . $this->id . '_' . time() . image_type_to_extension($image->type)))
{
ErrorHandler::fatalLang('attach_timeout', 'critical');
}
Expand Down

0 comments on commit 3dee6a6

Please sign in to comment.