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

[ticket/14386] Use of sys_get_temp_dir()

PHPBB3-14386
This commit is contained in:
Erwan Nader 2016-01-03 11:29:53 +01:00 committed by Marc Alexander
parent ffd6abdeaf
commit 59481da9da

View File

@ -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')))
{