fucked up...

This commit is contained in:
typ 2013-07-14 02:43:44 +02:00
parent 0775eaf8c1
commit ed5e320ff6

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-zA-Z0-9_\-]/', $username)) {
$this->setErrorMessage('Username may only contain alphanumeric characters');
return false;
}