summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-01-19 00:09:24 +0100
committerINOPIAE <inopiae@cacert.org>2013-01-19 00:09:24 +0100
commit9403d13383887ad096e3f7007e76daea9e877921 (patch)
treec5cb653691b778c8e2db27f019fea0883fd33f6a
parent147c87c584f1dff1605553ea8b35f3345a1c6d3a (diff)
downloadcacert-devel-9403d13383887ad096e3f7007e76daea9e877921.tar.gz
cacert-devel-9403d13383887ad096e3f7007e76daea9e877921.tar.xz
cacert-devel-9403d13383887ad096e3f7007e76daea9e877921.zip
bug 1137: Added check for non numeric points
-rw-r--r--www/wot.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/www/wot.php b/www/wot.php
index bf219e3..9d305ad 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -215,11 +215,6 @@ $iecho= "c";
exit;
}
- if(strlen(trim($_REQUEST['location']))<=3)
- {
- show_page("VerifyData","",_("You must enter a location with at least 3 characters eg town and country."));
- exit;
- }
if(!array_key_exists('assertion',$_POST) || $_POST['assertion'] != 1)
{
show_page("VerifyData","",_("You failed to check all boxes to validate your adherence to the rules and policies of CAcert"));
@@ -251,7 +246,13 @@ $iecho= "c";
exit;
}
- if($_REQUEST['points'] == "")
+ if(strlen(trim($_REQUEST['location']))<=3)
+ {
+ show_page("VerifyData","",_("You must enter a location with at least 3 characters eg town and country."));
+ exit;
+ }
+
+ if($_REQUEST['points'] == "" || !is_numeric($_REQUEST['points']))
{
show_page("VerifyData","",_("You must enter the number of points you wish to allocate to this person."));
exit;