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
This commit is contained in:
parent
c0aea52686
commit
d35ecc2cf0
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ if (POST_SUBMITTED != '') {
|
||||||
} elseif (!$userservice->isValidEmail(POST_MAIL)) {
|
} elseif (!$userservice->isValidEmail(POST_MAIL)) {
|
||||||
$tplVars['error'] = T_('E-mail address is not valid. Please try again.');
|
$tplVars['error'] = T_('E-mail address is not valid. Please try again.');
|
||||||
|
|
||||||
// Check if antispam answer is valid
|
// Check if antispam answer is valid (doesn't take into account spaces and uppercase)
|
||||||
} elseif (strcmp(POST_ANTISPAMANSWER, $GLOBALS['antispamAnswer']) != 0) {
|
} elseif (strcasecmp(str_replace(' ', '', POST_ANTISPAMANSWER), str_replace(' ', '', $GLOBALS['antispamAnswer'])) != 0) {
|
||||||
$tplVars['error'] = T_('Antispam answer is not valid. Please try again.');
|
$tplVars['error'] = T_('Antispam answer is not valid. Please try again.');
|
||||||
|
|
||||||
// Register details
|
// Register details
|
||||||
|
|
Loading…
Reference in a new issue