mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
bug attemp fixed
This commit is contained in:
@@ -148,6 +148,12 @@ class Units {
|
||||
$form->addError("error","You can't send negative units.");
|
||||
break;
|
||||
}
|
||||
|
||||
if($post['t'.$i]>30000000)
|
||||
{
|
||||
$form->addError("error","Bug attempt!");
|
||||
break;
|
||||
}
|
||||
|
||||
if(preg_match('/[^0-9]/',$post['t'.$i]))
|
||||
{
|
||||
@@ -168,6 +174,11 @@ class Units {
|
||||
$form->addError("error","You can't send negative units.");
|
||||
break;
|
||||
}
|
||||
if($post['t11']>2)
|
||||
{
|
||||
$form->addError("error","Bug attempt!");
|
||||
break;
|
||||
}
|
||||
if(preg_match('/[^0-9]/',$post['t11']))
|
||||
{
|
||||
$form->addError("error","Special characters can't entered");
|
||||
|
||||
Reference in New Issue
Block a user