Commit a80c79b4 authored by AlexisWilke's avatar AlexisWilke Committed by soxofaan

Issue 1701050: replace strtolower() with drupal_strtolower()

parent 80f833c6
......@@ -468,7 +468,7 @@ function captcha_validate_strict_equality($solution, $response) {
* @return TRUE when case insensitive equal, FALSE otherwise.
*/
function captcha_validate_case_insensitive_equality($solution, $response) {
return strtolower($solution) === strtolower($response);
return drupal_strtolower($solution) === drupal_strtolower($response);
}
/**
......@@ -488,7 +488,7 @@ function captcha_validate_ignore_spaces($solution, $response) {
* @return TRUE when equal (ignoring spaces), FALSE otherwise.
*/
function captcha_validate_case_insensitive_ignore_spaces($solution, $response) {
return preg_replace('/\s/', '', strtolower($solution)) === preg_replace('/\s/', '', strtolower($response));
return preg_replace('/\s/', '', drupal_strtolower($solution)) === preg_replace('/\s/', '', drupal_strtolower($response));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment