aboutsummaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-09 12:55:38 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-09 12:55:38 +0000
commitd35ecc2cf09c98ab4faf34304b612c494fc8f880 (patch)
treed6160746a31bfba6e35ae0f26945c434907527c5 /register.php
parentc0aea526864ab4e0d659917425d17e108eeff502 (diff)
downloadsemanticscuttle-d35ecc2cf09c98ab4faf34304b612c494fc8f880.tar.gz
semanticscuttle-d35ecc2cf09c98ab4faf34304b612c494fc8f880.tar.bz2
Interface fix: accepts antispam answers without taking spaces or uppercase into account.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@261 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'register.php')
-rw-r--r--register.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/register.php b/register.php
index bc1196a..3b64873 100644
--- a/register.php
+++ b/register.php
@@ -55,8 +55,8 @@ if (POST_SUBMITTED != '') {
} elseif (!$userservice->isValidEmail(POST_MAIL)) {
$tplVars['error'] = T_('E-mail address is not valid. Please try again.');
- // Check if antispam answer is valid
- } elseif (strcmp(POST_ANTISPAMANSWER, $GLOBALS['antispamAnswer']) != 0) {
+ // Check if antispam answer is valid (doesn't take into account spaces and uppercase)
+ } elseif (strcasecmp(str_replace(' ', '', POST_ANTISPAMANSWER), str_replace(' ', '', $GLOBALS['antispamAnswer'])) != 0) {
$tplVars['error'] = T_('Antispam answer is not valid. Please try again.');
// Register details