From eee2091201b5b76b7b5fddc20092ae69167fbb30 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Sat, 10 May 2014 15:02:10 +0200 Subject: [ticket/11226] filespec::move_file() should error correctly PHPBB3-11226 --- phpBB/includes/functions_upload.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index b4e165502b..e7a4c23ba4 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -308,6 +308,8 @@ class filespec if (file_exists($this->destination_file) && !$overwrite) { @unlink($this->filename); + $this->error[] = sprintf($user->lang[$this->upload->error_prefix . 'GENERAL_UPLOAD_ERROR'], $this->destination_file); + return false; } else { -- cgit v1.2.1