1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15738] Remove code related with safe_mode

PHPBB3-15738
This commit is contained in:
Rubén Calvo
2018-07-30 13:58:52 +02:00
committed by Marc Alexander
parent ab0dae6003
commit 688d022f42
5 changed files with 4 additions and 11 deletions

View File

@@ -420,7 +420,7 @@ class filespec
return false;
}
$upload_mode = ($this->php_ini->getBool('open_basedir') || $this->php_ini->getBool('safe_mode')) ? 'move' : 'copy';
$upload_mode = ($this->php_ini->getBool('open_basedir')) ? 'move' : 'copy';
$upload_mode = ($this->local) ? 'local' : $upload_mode;
$this->destination_file = $this->destination_path . '/' . utf8_basename($this->realname);