[ticket/15342] If the file haven't been moved, remove it from the filesystem

PHPBB3-15342
This commit is contained in:
Rubén Calvo 2018-07-01 21:41:14 +02:00
parent 78c8674643
commit 0e0e157e87

View file

@ -288,6 +288,10 @@ class filespec_storage
{ {
$storage->delete($this->destination_file); $storage->delete($this->destination_file);
} }
else
{
@unlink($this->filename);
}
} }
/** /**