[Pkg-owncloud-commits] [owncloud] 128/273: don't typecast null values inside dispatcher.php

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 03:13:08 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 c30bea45e99d4a3b11c4729356d55092e2ec56eb
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Sun Jun 29 22:40:50 2014 +0200

    don't typecast null values inside dispatcher.php
---
 lib/private/appframework/http/dispatcher.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/appframework/http/dispatcher.php b/lib/private/appframework/http/dispatcher.php
index fa8d3c4..7f27179 100644
--- a/lib/private/appframework/http/dispatcher.php
+++ b/lib/private/appframework/http/dispatcher.php
@@ -145,7 +145,7 @@ class Dispatcher {
 			) {
 				$value = false;
 
-			} elseif(in_array($type, $types)) {
+			} elseif($value !== null && in_array($type, $types)) {
 				settype($value, $type);
 			}
 

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