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

This commit is contained in:
Georg Ehrke 2014-07-05 13:28:47 +02:00
parent 2327d41b11
commit 042ec984bd

View file

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