[Pkg-owncloud-commits] [owncloud] 04/15: logging changes

David Prévot taffit at moszumanska.debian.org
Thu Nov 13 18:17:34 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 5ef6c4e03d2525a4af48d6a4a6b987fa1d251927
Author: Craig Morrissey <craig at owncloud.com>
Date:   Fri Nov 7 12:44:18 2014 -0500

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

diff --git a/lib/private/user.php b/lib/private/user.php
index b8e3ad2..bd83352 100644
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -231,6 +231,9 @@ class OC_User {
 	 * Log in a user and regenerate a new session - if the password is ok
 	 */
 	public static function login($loginname, $password) {
+		$loginname = str_replace("\0", '', $loginname);
+		$password = str_replace("\0", '', $password);
+
 		session_regenerate_id(true);
 		$result = self::getUserSession()->login($loginname, $password);
 		if ($result) {

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