Skip to content
Permalink
Browse files

FIX: Fix creating users when mbstring extension is not available

  • Loading branch information...
LarsMichelsen committed Jul 17, 2019
1 parent 76ebb01 commit 747aed4fe3e47d2e6c0d80335ceccd0e8507f195
Showing with 5 additions and 3 deletions.
  1. +2 −0 ChangeLog
  2. +3 −3 share/server/core/classes/ViewManageUsers.php
@@ -1,4 +1,6 @@
1.9.14
Frontend
* FIX: Fix creating users when mbstring extension is not available

1.9.13
Worldmap:
@@ -35,7 +35,7 @@ private function addForm() {
if (!$name)
throw new FieldInputError('name', l('Please specify a name.'));
if (mb_strlen($name) > AUTH_MAX_USERNAME_LENGTH)
if (strlen($name) > AUTH_MAX_USERNAME_LENGTH)
throw new FieldInputError('name', l('This name is too long.'));
if (!preg_match(MATCH_USER_NAME, $name))
@@ -49,7 +49,7 @@ private function addForm() {
if (!$password1)
throw new FieldInputError('password1', l('Please specify a password.'));
if (mb_strlen($password1) > AUTH_MAX_PASSWORD_LENGTH)
if (strlen($password1) > AUTH_MAX_PASSWORD_LENGTH)
throw new FieldInputError('password1', l('This password is too long.'));
$password2 = post('password2');
@@ -254,7 +254,7 @@ private function resetPwForm() {
if (!$password1)
throw new FieldInputError('password1', l('Please specify a password.'));
if (mb_strlen($password1) > AUTH_MAX_PASSWORD_LENGTH)
if (strlen($password1) > AUTH_MAX_PASSWORD_LENGTH)
throw new FieldInputError('password1', l('This password is too long.'));
$password2 = post('password2');

0 comments on commit 747aed4

Please sign in to comment.
You can’t perform that action at this time.