]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface fix: accepts antispam answers without taking spaces or uppercase into account.
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 9 Feb 2009 12:55:38 +0000 (12:55 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 9 Feb 2009 12:55:38 +0000 (12:55 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@261 b3834d28-1941-0410-a4f8-b48e95affb8f

register.php

index bc1196a698b857db9fd4918cd40eb68889d6fd7d..3b64873cc036f5813399b3bd698cbcd135848b24 100644 (file)
@@ -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