Merge pull request #452 from Shadowss/patch-115

bug attemp fixed
This commit is contained in:
yi12345
2013-11-07 14:14:08 -08:00
+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");