Skip to content
Snippets Groups Projects
Commit 0e55949c authored by deuce's avatar deuce
Browse files

query properties are arrays, not strings.

parent 9787e793
Branches
Tags
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment