We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d7b00f commit 9b7034dCopy full SHA for 9b7034d
inc/user.class.php
@@ -544,7 +544,7 @@ function prepareInputForAdd($input) {
544
return false;
545
}
546
547
- if (!Auth::isValidLogin($input['name'])) {
+ if (!Auth::isValidLogin(stripslashes($input['name']))) {
548
Session::addMessageAfterRedirect(__('The login is not valid. Unable to add the user.'),
549
false, ERROR);
550
@@ -2745,7 +2745,7 @@ function pre_updateInDB() {
2745
2746
2747
2748
- if (!Auth::isValidLogin($this->input['name'])) {
+ if (!Auth::isValidLogin(stripslashes($this->input['name']))) {
2749
$this->fields['name'] = $this->oldvalues['name'];
2750
unset($this->updates[$key]);
2751
unset($this->oldvalues['name']);
0 commit comments