[Pkg-owncloud-commits] [owncloud] 49/273: better validation for OC_App::getAppPath()

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 03:12:56 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 09356bc5b36bc68cad54517aabe858fd42ba23a2
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Wed Jun 25 16:24:55 2014 +0200

    better validation for OC_App::getAppPath()
---
 lib/private/app.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/private/app.php b/lib/private/app.php
index 01597b3..9fb0ec2 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -509,6 +509,10 @@ class OC_App {
 	 * @return string|false
 	 */
 	public static function getAppPath($appid) {
+		if ($appid === null || trim($appid) === '') {
+			return false;
+		}
+
 		if (($dir = self::findAppInDirectories($appid)) != false) {
 			return $dir['path'] . '/' . $appid;
 		}

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