[Pkg-owncloud-commits] [owncloud] 150/273: loop over usernames, not passwords

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 03:13:10 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 16275eca845f7bb7c4872f1120f76177f593a693
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Mon Jun 30 20:43:50 2014 +0200

    loop over usernames, not passwords
---
 lib/private/user/dummy.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/user/dummy.php b/lib/private/user/dummy.php
index 1d20bd3..dbcbb2a 100644
--- a/lib/private/user/dummy.php
+++ b/lib/private/user/dummy.php
@@ -109,7 +109,7 @@ class OC_User_Dummy extends OC_User_Backend {
 			return array_keys($this->users);
 		}
 		$result = array();
-		foreach($this->users as $user) {
+		foreach(array_keys($this->users) as $user) {
 			if(stripos($user, $search) !== false) {
 				$result[] = $user;
 			}

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