diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-04-26 21:50:06 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-04-26 21:50:06 +0300 |
commit | 99d6a4a7cc69648a46c249bdb3829013e244ea4d (patch) | |
tree | a479913fe2aa72e3f159f0c37e26b2288b36f504 | |
parent | e3cbcdf044b50a727cdead277239009b686240b8 (diff) | |
parent | e0f687397b6636b6da2079bf797d4a8230378ed5 (diff) |
Merge pull request #24284 from owncloud/backport-24262-stable8.1
[stable8.1] 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 3db8efbfbee..36b86558a68 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -263,7 +263,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")); } |