From 0e0e157e871e31f4e07ef5f7f821bc026cd13ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Sun, 1 Jul 2018 21:41:14 +0200 Subject: [PATCH] [ticket/15342] If the file haven't been moved, remove it from the filesystem PHPBB3-15342 --- phpBB/phpbb/files/filespec_storage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpBB/phpbb/files/filespec_storage.php b/phpBB/phpbb/files/filespec_storage.php index 49c9618844..5f3b895a05 100644 --- a/phpBB/phpbb/files/filespec_storage.php +++ b/phpBB/phpbb/files/filespec_storage.php @@ -288,6 +288,10 @@ class filespec_storage { $storage->delete($this->destination_file); } + else + { + @unlink($this->filename); + } } /**