#10420 fixed login ldap with quotes

This commit is contained in:
Daniel Cebrian 2023-04-11 13:12:48 +02:00
parent 60341b10c3
commit da2ede8627
1 changed files with 2 additions and 2 deletions

View File

@ -402,8 +402,8 @@ function process_user_login_remote($login, $pass, $api=false)
$config['auth_error'] = __('User not found in database or incorrect password');
return false;
} else {
$user_info['fullname'] = db_escape_string_sql($sr['cn'][0]);
$user_info['email'] = $sr['mail'][0];
$user_info['fullname'] = io_safe_input(db_escape_string_sql($sr['cn'][0]));
$user_info['email'] = io_safe_input($sr['mail'][0]);
// Create the user.
$create_user = create_user_and_permisions_ldap(