mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Strings/Encoding
* replaced some more uses of string functions with multibyte equivalents where it might matter note: i didn't touch the spell-tooltip parser as it seems to work as intended regardless
This commit is contained in:
@@ -370,7 +370,7 @@ class User
|
||||
{
|
||||
$errCode = 0;
|
||||
|
||||
if (strlen($name) < 4 || strlen($name) > 16)
|
||||
if (mb_strlen($name) < 4 || mb_strlen($name) > 16)
|
||||
$errCode = 1;
|
||||
else if (preg_match('/[^\w\d]/i', $name))
|
||||
$errCode = 2;
|
||||
|
||||
Reference in New Issue
Block a user