From 1685ecde0d704b609e277252841e250580f8b9a3 Mon Sep 17 00:00:00 2001 From: echicken <> Date: Mon, 15 Aug 2011 16:25:02 +0000 Subject: [PATCH] Better comparison of current username & guest username. --- web/root/ecWeb/newUser.ssjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/root/ecWeb/newUser.ssjs b/web/root/ecWeb/newUser.ssjs index 1a89e10d48..8f508223c2 100644 --- a/web/root/ecWeb/newUser.ssjs +++ b/web/root/ecWeb/newUser.ssjs @@ -13,7 +13,7 @@ load(webIni.webRoot + '/lib/captchaLib.ssjs'); openPage("New User Registration"); print("<span class=titleFont>New User Registration</span><br /><br />"); -if(http_request.query.hasOwnProperty('action') && http_request.query.action == 'newUser' && user.alias == webIni.guestUser) { +if(http_request.query.hasOwnProperty('action') && http_request.query.action == 'newUser' && user.alias.toUpperCase() == webIni.guestUser.toUpperCase()) { /* The various 'x not provided' errors should only crop up if somebody messed with our newuser form or posted from another form. */ -- GitLab