Commit 78d96f5c authored by wundo's avatar wundo

Security Fix.

parent b7d17357
......@@ -149,8 +149,7 @@ function captcha_captchachallenge(&$form, &$captcha) {
function captcha_captchavalidate(&$captcha_word, &$correct) {
$captcha_word = drupal_strtolower($captcha_word);
if ($captcha_word == $_SESSION['captcha']) {
if (($_SESSION['captcha'] != '') && ($captcha_word == $_SESSION['captcha'])) {
$correct = TRUE;
}
else {
......
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