Skip to content
Snippets Groups Projects
Commit 042ec984 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

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

parent 2327d41b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment