Fixing username regexp during registration

Fixes wrong regext of #453
This commit is contained in:
Sebastian Grewe 2013-07-14 21:08:03 +02:00
parent 15753f5eca
commit 253d6e8a47

View File

@ -455,7 +455,7 @@ class User {
$this->setErrorMessage('Username exceeding character limit');
return false;
}
if (preg_match('/[^a-zA-Z0-9_\-]/', $username)) {
if (preg_match('/[^a-z_\-0-9]/i', $username)) {
$this->setErrorMessage('Username may only contain alphanumeric characters');
return false;
}