summaryrefslogtreecommitdiff
path: root/app/Core/Plugin
diff options
context:
space:
mode:
authorkent1 <kent1@arscenic.info>2017-08-30 23:14:00 +0200
committerFred <fred@kanboard.net>2017-08-31 15:32:33 -0700
commitb50d9c6f312f454ac57f78649de8d5081193785a (patch)
tree87023257ae8adf57f04c8d69e8e9f9d966589789 /app/Core/Plugin
parent93151ff932416d2736cd00c679f342e98d5ecf14 (diff)
Allow the use of open_basedir and upload_tmp_dir
Diffstat (limited to 'app/Core/Plugin')
-rw-r--r--app/Core/Plugin/Installer.php2
1 files changed, 1 insertions, 1 deletions
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);