Allow the use of open_basedir and upload_tmp_dir
This commit is contained in:
@@ -100,7 +100,7 @@ class Installer extends \Kanboard\Core\Base
|
|||||||
{
|
{
|
||||||
$zip = new ZipArchive();
|
$zip = new ZipArchive();
|
||||||
$archiveData = $this->httpClient->get($archiveUrl);
|
$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)) {
|
if (empty($archiveData)) {
|
||||||
unlink($archiveFile);
|
unlink($archiveFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user