summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-07-05 13:28:47 +0200
committerGeorg Ehrke <developer@georgehrke.com>2014-07-05 13:28:47 +0200
commit042ec984bd65efdbd66a3750237e0d2c6867ee97 (patch)
treef5cce3ab9ae412dd3d3e574b9085d7d56149b9f5 /lib/private/app.php
parent2327d41b11e11ca0553c829b5d7adeb0f000a474 (diff)
downloadnextcloud-server-042ec984bd65efdbd66a3750237e0d2c6867ee97.tar.gz
nextcloud-server-042ec984bd65efdbd66a3750237e0d2c6867ee97.zip
better validation: cadd extra check if appinfo/info.xml exists
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 0ca2ca36bd2..be75f96eeee 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -587,6 +587,9 @@ class OC_App {
$file = self::getAppPath($appid) . '/appinfo/info.xml';
}
$data = array();
+ if (!file_exists($file)) {
+ return null;
+ }
$content = @file_get_contents($file);
if (!$content) {
return null;