mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Fixed Registration hack
This commit is contained in:
@@ -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;
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user