[Pkg-owncloud-commits] [owncloud] 29/70: better validation: cadd extra check if appinfo/info.xml exists

David Prévot taffit at moszumanska.debian.org
Mon Jul 14 17:38:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 59fd9d75171f1cba6d26087756444f9600592327
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Sat Jul 5 13:28:47 2014 +0200

    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 0ca2ca3..be75f96 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list