1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

Merge pull request #5310 from rubencm/ticket/15738

[ticket/15738] Remove code related with safe_mode
This commit is contained in:
Marc Alexander
2018-08-03 09:14:45 +02:00
committed by GitHub
6 changed files with 4 additions and 14 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);