diff --git a/GameEngine/Units.php b/GameEngine/Units.php index 7e367c7e..015de1f8 100644 --- a/GameEngine/Units.php +++ b/GameEngine/Units.php @@ -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");