From 3176369a2317541875a96b0b4c7105deb070a14a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 20 Apr 2015 20:16:13 +0200 Subject: [PATCH] fixup! Fix deletion of temporary files in UserAvatarAction::fetchRemoteAvatar() --- .../files/lib/data/user/avatar/UserAvatarAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php index 62f1ed3870..939d1674a3 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php @@ -189,7 +189,7 @@ class UserAvatarAction extends AbstractDatabaseObjectAction { // rescale avatar if required try { $newFilename = $this->enforceDimensions($filename); - @unlink($filename); + if ($newFilename !== $filename) @unlink($filename); $filename = $newFilename; } catch (\Exception $e) { -- 2.20.1