Allow the use of open_basedir and upload_tmp_dir

This commit is contained in:
kent1 2017-08-30 23:14:00 +02:00 committed by Fred
parent 93151ff932
commit b50d9c6f31
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class Installer extends \Kanboard\Core\Base
{
$zip = new ZipArchive();
$archiveData = $this->httpClient->get($archiveUrl);
$archiveFile = tempnam(sys_get_temp_dir(), 'kb_plugin');
$archiveFile = tempnam(ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(), 'kb_plugin');
if (empty($archiveData)) {
unlink($archiveFile);