mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
better validation: cadd extra check if appinfo/info.xml exists
This commit is contained in:
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue