bug attemp fixed

This commit is contained in:
Shadowss
2013-11-04 10:26:59 +02:00
parent cd544cc7f0
commit c6392d6670
+11
View File
@@ -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");