diff --git a/web/root/newuser.ssjs b/web/root/newuser.ssjs index e86e22e02eec1282647f81344a41525d39dd991c..709a54250ee69801cbb9be3c2d96a98a2af4b315 100644 --- a/web/root/newuser.ssjs +++ b/web/root/newuser.ssjs @@ -170,7 +170,7 @@ else { template.err_message+="Some fields missing from POST data... possible browser issue.\r\n"; } else { - if((system.newuser_questions & UQ_NOEXASC) && http_request.query[fields[field]].search(/[^\x20-\x7f]/)!=-1) { + if((system.newuser_questions & UQ_NOEXASC) && http_request.query[fields[field]][0].search(/[^\x20-\x7f]/)!=-1) { err=1; template.errs[fields[field]]="No Extended ASCII characters are allowed"; template.err_message+="Extended ASCII characters used.\r\n"; @@ -190,7 +190,7 @@ else { showform() } if(system.newuser_questions & UQ_LOCATION && !(system.newuser_questions & UQ_NOCOMMAS)) { - if(http_request.query["location"].search(/,./)==-1) { + if(http_request.query["location"][0].search(/,./)==-1) { err=1; template.errs[fields[field]]='Format should be "City, State"'; template.err_message+="Bad location format.\r\n";