diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-04-21 13:20:41 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-04-21 13:20:41 +0000 |
commit | fa22522236cd608286863faca5412a37e6eeab2c (patch) | |
tree | 748c5cf9521eccb364c69512f9f53680dd3aa609 /phpBB/includes/functions_upload.php | |
parent | af8cb0674b0faa338a840b4144b1da66be5dad64 (diff) | |
download | forums-fa22522236cd608286863faca5412a37e6eeab2c.tar forums-fa22522236cd608286863faca5412a37e6eeab2c.tar.gz forums-fa22522236cd608286863faca5412a37e6eeab2c.tar.bz2 forums-fa22522236cd608286863faca5412a37e6eeab2c.tar.xz forums-fa22522236cd608286863faca5412a37e6eeab2c.zip |
#23525
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8522 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r-- | phpBB/includes/functions_upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index ca4f51c12f..50108068cd 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -257,7 +257,7 @@ class filespec return false; } - $upload_mode = (@ini_get('open_basedir') || @ini_get('safe_mode')) ? 'move' : 'copy'; + $upload_mode = (@ini_get('open_basedir') || @ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'on') ? 'move' : 'copy'; $upload_mode = ($this->local) ? 'local' : $upload_mode; $this->destination_file = $this->destination_path . '/' . basename($this->realname); @@ -741,7 +741,7 @@ class fileupload return $file; } - $tmp_path = (!@ini_get('safe_mode')) ? false : $phpbb_root_path . 'cache'; + $tmp_path = (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') ? false : $phpbb_root_path . 'cache'; $filename = tempnam($tmp_path, unique_id() . '-'); if (!($fp = @fopen($filename, 'wb'))) |