From 4a042d059271b095ae8ce0b0b02dc86329448177 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 7 Jan 2022 17:35:25 +0100 Subject: [PATCH] Missing reset of the WebP flag for cover photos Uploading a GIF after uploading a cover photo with a WebP variant caused the GIF to not show up. See https://www.woltlab.com/community/thread/293665-gif-bilder-als-titelbild/ --- .../system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php b/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php index aafe7c562b..126143d5f2 100644 --- a/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php @@ -111,6 +111,7 @@ class UserCoverPhotoUploadFileSaveStrategy implements IUploadFileSaveStrategy // always generate a new hash to invalidate the browser cache and to avoid filename guessing 'coverPhotoHash' => StringUtil::getRandomID(), 'coverPhotoExtension' => $uploadFile->getFileExtension(), + 'coverPhotoHasWebP' => 0, ]); // force-reload the user profile to use a predictable code-path to fetch the cover photo -- 2.20.1