diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-07-05 13:28:47 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-07-05 13:28:47 +0200 |
commit | 042ec984bd65efdbd66a3750237e0d2c6867ee97 (patch) | |
tree | f5cce3ab9ae412dd3d3e574b9085d7d56149b9f5 /lib/private/app.php | |
parent | 2327d41b11e11ca0553c829b5d7adeb0f000a474 (diff) | |
download | nextcloud-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.php | 3 |
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; |