Skip to content
Snippets Groups Projects
Commit 541344d8 authored by Craig Morrissey's avatar Craig Morrissey
Browse files

logging changes

parent 68a522a8
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment