aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Nader <ernadoo@gmail.com>2015-12-30 12:22:05 +0100
committerErwan Nader <ernadoo@gmail.com>2016-01-03 10:01:00 +0100
commit73ca420029b467e869dbe66e722b4638e479c350 (patch)
treeea7dbb94384ae88a7f106ba58a26fb843f646c00
parent296243f34f32e1e811c9cc93d967e774ba2dd2e3 (diff)
downloadforums-73ca420029b467e869dbe66e722b4638e479c350.tar
forums-73ca420029b467e869dbe66e722b4638e479c350.tar.gz
forums-73ca420029b467e869dbe66e722b4638e479c350.tar.bz2
forums-73ca420029b467e869dbe66e722b4638e479c350.tar.xz
forums-73ca420029b467e869dbe66e722b4638e479c350.zip
[ticket/14386] Use of sys_get_temp_dir()
PHPBB3-14386
-rw-r--r--phpBB/includes/functions_upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 89bc31fa25..f0a48e51e5 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -919,7 +919,7 @@ class fileupload
return $file;
}
- $tmp_path = (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') ? false : $phpbb_root_path . 'cache';
+ $tmp_path = (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') ? sys_get_temp_dir() : $phpbb_root_path . 'cache';
$filename = tempnam($tmp_path, unique_id() . '-');
if (!($fp = @fopen($filename, 'wb')))