From 3dee6a68ca468350336924ac1592164bad784a80 Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Mon, 13 Nov 2023 15:12:27 -0700 Subject: [PATCH] Fixes bug where uploaded avatars would have two dots before extension Signed-off-by: Jon Stovell --- Sources/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Profile.php b/Sources/Profile.php index 27094e2d4b..319427b1c5 100644 --- a/Sources/Profile.php +++ b/Sources/Profile.php @@ -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'); }