You are here

function captcha_validate_strict_equality in CAPTCHA 7

Same name and namespace in other branches
  1. 8 captcha.module \captcha_validate_strict_equality()
  2. 6.2 captcha.module \captcha_validate_strict_equality()

CAPTCHA validation function to tests strict equality.

Parameters

string $solution: the solution of the test.

string $response: the response to the test.

Return value

bool TRUE when equal (ignoring spaces), FALSE otherwise.

2 string references to 'captcha_validate_strict_equality'
captcha_element_info in ./captcha.module
Implements of hook_element_info().
captcha_validate in ./captcha.module
CAPTCHA validation handler.

File

./captcha.module, line 541
This module enables basic CAPTCHA functionality: administrators can add a CAPTCHA to desired forms that users without the 'skip CAPTCHA' permission (typically anonymous visitors) have to solve.

Code

function captcha_validate_strict_equality($solution, $response) {
  return $solution === $response;
}