diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-01-06 13:20:32 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-01-06 13:20:32 +0100 |
commit | b340e45907dc4defdbe5dcf2d75f94a6655c180d (patch) | |
tree | ea7dbb94384ae88a7f106ba58a26fb843f646c00 /phpBB/includes/functions_upload.php | |
parent | 296243f34f32e1e811c9cc93d967e774ba2dd2e3 (diff) | |
parent | 73ca420029b467e869dbe66e722b4638e479c350 (diff) | |
download | forums-b340e45907dc4defdbe5dcf2d75f94a6655c180d.tar forums-b340e45907dc4defdbe5dcf2d75f94a6655c180d.tar.gz forums-b340e45907dc4defdbe5dcf2d75f94a6655c180d.tar.bz2 forums-b340e45907dc4defdbe5dcf2d75f94a6655c180d.tar.xz forums-b340e45907dc4defdbe5dcf2d75f94a6655c180d.zip |
Merge pull request #4104 from ErnadoO/ticket/14386
[ticket/14386] Fix for open_basedir restriction in effect with remote upload avatar
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r-- | phpBB/includes/functions_upload.php | 2 |
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'))) |