From ed5e320ff60230fa23c48de21856398444c7309e Mon Sep 17 00:00:00 2001 From: typ Date: Sun, 14 Jul 2013 02:43:44 +0200 Subject: [PATCH] fucked up... --- public/include/classes/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index cd514966..a3a01ef5 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -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; }