diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-04-26 09:57:50 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-04-26 09:57:50 +0200 |
commit | ef8fc6a03c2a72523bdb296c0cbcbf562872ba2e (patch) | |
tree | 15a12181fece2ea381fe04c78e558bb325ef84b6 | |
parent | 6d62a74d7ec3ff1d761a42e8a0adcf551bc22f85 (diff) | |
parent | 4b465713705e21439cc53fcc76d5f66b40daa931 (diff) | |
download | nextcloud-server-ef8fc6a03c2a72523bdb296c0cbcbf562872ba2e.tar.gz nextcloud-server-ef8fc6a03c2a72523bdb296c0cbcbf562872ba2e.zip |
Merge pull request #24262 from owncloud/fix-24228
check whether index is set before using it
-rw-r--r-- | lib/private/installer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php index 421e281e56b..24c79b2dd8c 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -269,7 +269,8 @@ class OC_Installer{ //download the file if necessary if($data['source']=='http') { $pathInfo = pathinfo($data['href']); - $path = \OC::$server->getTempManager()->getTemporaryFile('.' . $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")); } |