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:
authorVincent Petry <pvince81@owncloud.com>2016-04-26 21:49:29 +0300
committerVincent Petry <pvince81@owncloud.com>2016-04-26 21:49:29 +0300
commitcac5afd85f909730efdb850998e9adb480558cfa (patch)
treeecbb3ff3baa523923df6dffbbb972cbf48374e4d
parent96ce579adc70d4a907adc3f97740c7508afcd284 (diff)
parent898266f0dccfdaef726b35fbbb9da7b5bd0503c8 (diff)
Merge pull request #24283 from owncloud/backport-24262-stable8.2
[stable8.2] check whether index is set before using it
-rw-r--r--lib/private/installer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 75ff3c2b2e3..2ed2e02ee07 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -267,7 +267,8 @@ class OC_Installer{
//download the file if necessary
if($data['source']=='http') {
$pathInfo = pathinfo($data['href']);
- $path=OC_Helper::tmpFile('.' . $pathInfo['extension']);
+ $extension = isset($pathInfo['extension']) ? '.' . $pathInfo['extension'] : '';
+ $path = \OC::$server->getTempManager()->getTemporaryFile($extension);
if(!isset($data['href'])) {
throw new \Exception($l->t("No href specified when installing app from http"));
}