From 0e55949cae27dd177f04fc28f410f481bb2c00c6 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 6 Feb 2005 23:48:37 +0000
Subject: [PATCH] query properties are arrays, not strings.

---
 web/root/newuser.ssjs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/root/newuser.ssjs b/web/root/newuser.ssjs
index e86e22e02e..709a54250e 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";
-- 
GitLab