Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
captcha
Commits
a80c79b4
Commit
a80c79b4
authored
Jul 26, 2012
by
alexiswilke
Committed by
Stefaan Lippens
Jul 26, 2012
Browse files
Issue 1701050: replace strtolower() with drupal_strtolower()
parent
80f833c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
captcha.module
captcha.module
+2
-2
No files found.
captcha.module
View file @
a80c79b4
...
...
@@ -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
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment