From c9ff5a09f61ebf1bc3cd56c094d7a08f0b117566 Mon Sep 17 00:00:00 2001 From: Ruben Calvo Date: Sun, 19 Jan 2025 21:09:36 +0100 Subject: [PATCH] [ticket/17361] Fix file not deleted when there is an error PHPBB-17361 --- phpBB/phpbb/files/filespec_storage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/phpbb/files/filespec_storage.php b/phpBB/phpbb/files/filespec_storage.php index f223976b9e..fcda005d7b 100644 --- a/phpBB/phpbb/files/filespec_storage.php +++ b/phpBB/phpbb/files/filespec_storage.php @@ -447,6 +447,7 @@ class filespec_storage $fp = fopen($this->filename, 'rb'); $storage->write($this->destination_file, $fp); + $this->file_moved = true; } catch (\phpbb\storage\exception\storage_exception $e) {