From 042ec984bd65efdbd66a3750237e0d2c6867ee97 Mon Sep 17 00:00:00 2001
From: Georg Ehrke <developer@georgehrke.com>
Date: Sat, 5 Jul 2014 13:28:47 +0200
Subject: [PATCH] better validation: cadd extra check if appinfo/info.xml
 exists

---
 lib/private/app.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/app.php b/lib/private/app.php
index 0ca2ca36bd..be75f96eee 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;
-- 
GitLab