diff --git a/GameEngine/Account.php b/GameEngine/Account.php index 94f955fd..26d7476d 100644 --- a/GameEngine/Account.php +++ b/GameEngine/Account.php @@ -52,6 +52,9 @@ class Account { else if(!USRNM_SPECIAL && preg_match('/[^0-9A-Za-z]/',$_POST['name'])) { $form->addError("name",USRNM_CHAR); } + else if(USRNM_SPECIAL && preg_match("/[:,\\. \\n\\r\\t\\s\\<\\>]+/", $_POST['name'])) { + $form->addError("name",USRNM_CHAR); + } else if($database->checkExist($_POST['name'],0)) { $form->addError("name",USRNM_TAKEN); } @@ -237,4 +240,4 @@ class Account { }; $account = new Account; -?> \ No newline at end of file +?>