From b50d9c6f312f454ac57f78649de8d5081193785a Mon Sep 17 00:00:00 2001 From: kent1 Date: Wed, 30 Aug 2017 23:14:00 +0200 Subject: Allow the use of open_basedir and upload_tmp_dir --- app/Core/Plugin/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Core/Plugin') diff --git a/app/Core/Plugin/Installer.php b/app/Core/Plugin/Installer.php index b3618aeb..057ded94 100644 --- a/app/Core/Plugin/Installer.php +++ b/app/Core/Plugin/Installer.php @@ -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); -- cgit v1.2.3