Skip to content
Snippets Groups Projects
Commit 3636875c authored by runemaster's avatar runemaster
Browse files

Fix Birthdate validation. (Thanks Tracker1)

parent 1bfb185c
No related branches found
No related tags found
No related merge requests found
......@@ -65,12 +65,12 @@ else {
template.errs["gender"]="Male or Female";
}
/* Validate date */
if(http_request.query["birthdate"].length<8) {
if(http_request.query["birthdate"].toString().length<8) {
err=1;
template.err_message+="Bad date format (ie: 12/19/75)\r\n";
}
else {
brokendate=http_request.query["birthdate"].split('/');
brokendate=http_request.query["birthdate"].toString().split('/');
if(brokendate.length!=3) {
err=1;
template.err_message="Bad date format\r\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment