mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/17361] Fix file not deleted when there is an error
PHPBB-17361
This commit is contained in:
@@ -447,6 +447,7 @@ class filespec_storage
|
|||||||
$fp = fopen($this->filename, 'rb');
|
$fp = fopen($this->filename, 'rb');
|
||||||
|
|
||||||
$storage->write($this->destination_file, $fp);
|
$storage->write($this->destination_file, $fp);
|
||||||
|
$this->file_moved = true;
|
||||||
}
|
}
|
||||||
catch (\phpbb\storage\exception\storage_exception $e)
|
catch (\phpbb\storage\exception\storage_exception $e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user