diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-07-05 15:28:47 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-07-07 17:03:33 +0400 |
commit | 59fd9d75171f1cba6d26087756444f9600592327 (patch) | |
tree | 8f1126aa814dc58fb146b70275ff2a4f4135111b /lib/private/app.php | |
parent | 5344d9beab68baae3abd830ccec40893c5802fa9 (diff) |
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; |