Merge pull request #422 from Shadowss/patch-90

Fixed Registration hack
This commit is contained in:
yi12345
2013-11-01 00:56:46 -07:00
+4 -1
View File
@@ -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;
?>
?>