Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-28 14:33:59 +0400
committerRobin Appelman <icewind@owncloud.com>2012-02-28 14:33:59 +0400
commit3e0bb3e7c4a34b3e7344665b901918ce54b57d81 (patch)
tree53176a0c4efe97aa9fdb464199ffe1a9da1654cd /lib/installer.php
parenta76ff563d645ce456d6366b34fd763d5b11ee0d3 (diff)
use temporary file managment
Diffstat (limited to 'lib/installer.php')
-rw-r--r--lib/installer.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/installer.php b/lib/installer.php
index 2cc7555f0d6..2a9676998f6 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(get_temp_dir(),'oc_installer_');
+ $path=OC_Helper::tmpFile('.zip');
if(!isset($data['href'])){
OC_Log::write('core','No href specified when installing app from http',OC_Log::ERROR);
return false;
@@ -142,9 +142,6 @@ class OC_Installer{
//remove temporary files
OC_Helper::rmdirr($extractDir);
- if($data['source']=='http'){
- unlink($path);
- }
//install the database
if(is_file($basedir.'/appinfo/database.xml')){