better validation: cadd extra check if appinfo/info.xml exists

remotes/origin/fix-10825
Georg Ehrke 2014-07-05 13:28:47 +07:00
parent 2327d41b11
commit 042ec984bd
1 changed files with 3 additions and 0 deletions

@ -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;