Commit 541344d8 authored by Craig Morrissey's avatar Craig Morrissey
Browse files

logging changes

parent 68a522a8
......@@ -228,6 +228,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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment