mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11226] filespec::move_file() should error correctly
PHPBB3-11226
This commit is contained in:
parent
d4fc060bcd
commit
eee2091201
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue