aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/installer.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-03-30 23:29:26 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-03-30 23:29:26 +0200
commitf5beeec833ff500b9c5072728338d372820e903c (patch)
treea0714981840aece7d65ccc6b6de8ebc05e4f5058 /lib/private/installer.php
parent00c9974d945f7d50d7d10d7de5fc5a16f4d7421e (diff)
downloadnextcloud-server-f5beeec833ff500b9c5072728338d372820e903c.tar.gz
nextcloud-server-f5beeec833ff500b9c5072728338d372820e903c.zip
Properly handle return values of OC_App::getAppInfo()
* fixes #23668
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r--lib/private/installer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index c026383e26e..421e281e56b 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -342,6 +342,9 @@ class OC_Installer{
}
$info = OC_App::getAppInfo($extractDir.'/appinfo/info.xml', true);
+ if(!is_array($info)) {
+ throw new \Exception($l->t('App cannot be installed because appinfo file cannot be read.'));
+ }
// We can't trust the parsed info.xml file as it may have been tampered
// with by an attacker and thus we need to use the local data to check