Skip to content

Commit 9b7034d

Browse files
committed
Fix sanitized value; closes #6900
1 parent 7d7b00f commit 9b7034d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/user.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ function prepareInputForAdd($input) {
544544
return false;
545545
}
546546

547-
if (!Auth::isValidLogin($input['name'])) {
547+
if (!Auth::isValidLogin(stripslashes($input['name']))) {
548548
Session::addMessageAfterRedirect(__('The login is not valid. Unable to add the user.'),
549549
false, ERROR);
550550
return false;
@@ -2745,7 +2745,7 @@ function pre_updateInDB() {
27452745
false, ERROR);
27462746
}
27472747

2748-
if (!Auth::isValidLogin($this->input['name'])) {
2748+
if (!Auth::isValidLogin(stripslashes($this->input['name']))) {
27492749
$this->fields['name'] = $this->oldvalues['name'];
27502750
unset($this->updates[$key]);
27512751
unset($this->oldvalues['name']);

0 commit comments

Comments
 (0)