diff options
author | Hendrik Langer <hendrik.langer@gmx.de> | 2011-10-19 23:38:35 +0200 |
---|---|---|
committer | Hendrik Langer <hendrik.langer@gmx.de> | 2011-10-19 23:38:35 +0200 |
commit | 466b41c36bf7093cdde9d2856eb520503f52640c (patch) | |
tree | 6456918f3f142f0ade1370ffb948fa9ffc59a267 /lib/installer.php | |
parent | da8d32ae38acdab576a30ca56b30579f427c780d (diff) | |
download | nextcloud-server-466b41c36bf7093cdde9d2856eb520503f52640c.tar.gz nextcloud-server-466b41c36bf7093cdde9d2856eb520503f52640c.zip |
Don't use sys_get_temp_dir(), as it reports the wrong path in restricted environments
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/installer.php b/lib/installer.php index 242ca97934f..9248f68e011 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -62,7 +62,7 @@ class OC_Installer{ //download the file if necesary if($data['source']=='http'){ - $path=tempnam(sys_get_temp_dir(),'oc_installer_'); + $path=tempnam(get_temp_dir(),'oc_installer_'); if(!isset($data['href'])){ OC_Log::write('core','No href specified when installing app from http',OC_Log::ERROR); return false; @@ -77,7 +77,7 @@ class OC_Installer{ } //extract the archive in a temporary folder - $extractDir=tempnam(sys_get_temp_dir(),'oc_installer_uncompressed_'); + $extractDir=tempnam(get_temp_dir(),'oc_installer_uncompressed_'); unlink($extractDir); mkdir($extractDir); $zip = new ZipArchive; |