Skip to content

Commit 34308d1

Browse files
committedJan 19, 2025
[ticket/17361] Fix file not deleted when there is an error
PHPBB-17361
1 parent 0087cdb commit 34308d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎files/filespec_storage.php

+1
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ public function move_file($storage, $overwrite = false, $skip_image_check = fals
447447
$fp = fopen($this->filename, 'rb');
448448

449449
$storage->write($this->destination_file, $fp);
450+
$this->file_moved = true;
450451
}
451452
catch (\phpbb\storage\exception\storage_exception $e)
452453
{

0 commit comments

Comments
 (0)
Please sign in to comment.