diff options
author | Erwan Nader <ernadoo@gmail.com> | 2016-01-03 11:29:53 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-01-06 13:16:03 +0100 |
commit | 59481da9dac23ccb8382202eb6623c3fc71030a0 (patch) | |
tree | 25f901759d33f825146be691f3b9ec5c9a14d0ce /phpBB/phpbb | |
parent | ffd6abdeafd2abb6a27925cc052f4d214408ed05 (diff) | |
download | forums-59481da9dac23ccb8382202eb6623c3fc71030a0.tar forums-59481da9dac23ccb8382202eb6623c3fc71030a0.tar.gz forums-59481da9dac23ccb8382202eb6623c3fc71030a0.tar.bz2 forums-59481da9dac23ccb8382202eb6623c3fc71030a0.tar.xz forums-59481da9dac23ccb8382202eb6623c3fc71030a0.zip |
[ticket/14386] Use of sys_get_temp_dir()
PHPBB3-14386
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/files/types/remote.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/phpbb/files/types/remote.php b/phpBB/phpbb/files/types/remote.php index 44feab0ece..4f4ce15c18 100644 --- a/phpBB/phpbb/files/types/remote.php +++ b/phpBB/phpbb/files/types/remote.php @@ -200,8 +200,7 @@ class remote extends base return $this->factory->get('filespec')->set_error($this->upload->error_prefix . 'EMPTY_REMOTE_DATA'); } - $tmp_path = (!$this->php_ini->getBool('safe_mode')) ? false : $this->phpbb_root_path . 'cache'; - $filename = tempnam($tmp_path, unique_id() . '-'); + $filename = tempnam(sys_get_temp_dir(), unique_id() . '-'); if (!($fp = @fopen($filename, 'wb'))) { |