File: phpbb/files/filespec.php
Unmodified
Added
Modified
Removed
Line 408 | Line 408 |
---|
return false; }
|
return false; }
|
$chmod = ($chmod === false) ? CHMOD_READ | CHMOD_WRITE : $chmod;
| $chmod = ($chmod === false) ? \phpbb\filesystem\filesystem_interface::CHMOD_READ | \phpbb\filesystem\filesystem_interface::CHMOD_WRITE : $chmod;
|
// We need to trust the admin in specifying valid upload directories and an attacker not being able to overwrite it... $this->destination_path = $this->phpbb_root_path . $destination;
| // We need to trust the admin in specifying valid upload directories and an attacker not being able to overwrite it... $this->destination_path = $this->phpbb_root_path . $destination;
|
Line 476 | Line 476 |
---|
}
// Remove temporary filename
|
}
// Remove temporary filename
|
| if (file_exists($this->filename)) {
|
@unlink($this->filename);
|
@unlink($this->filename);
|
| }
|
if (count($this->error)) {
| if (count($this->error)) {
|