function captcha_validate_case_insensitive_equality in CAPTCHA 8
Same name and namespace in other branches
- 6.2 captcha.module \captcha_validate_case_insensitive_equality()
- 7 captcha.module \captcha_validate_case_insensitive_equality()
CAPTCHA validation function to tests case insensitive equality.
Parameters
string $solution: The solution of the test.
string $response: The response to the test.
Return value
bool TRUE when case insensitive equal, FALSE otherwise.
1 string reference to 'captcha_validate_case_insensitive_equality'
- Captcha::getInfo in src/
Element/ Captcha.php - Returns the element properties for this element.
File
- ./
captcha.module, line 336 - This module enables basic CAPTCHA functionality.
Code
function captcha_validate_case_insensitive_equality($solution, $response) {
return mb_strtolower($solution) === mb_strtolower($response);
}