1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Update secure_img_handler.php

Captcha can be bypassed if empty value given.
This commit is contained in:
Lee Howarth
2016-08-10 19:27:43 +01:00
committed by GitHub
parent 0b06fbda62
commit 1dbd7423c0

View File

@@ -81,7 +81,7 @@ class secure_image
// $sql = e107::getDb();
// $tp = e107::getParser();
if(!empty($_SESSION['secure_img'][$recnum]) && (intval($_SESSION['secure_img'][$recnum]) == $checkstr))
if(!empty($_SESSION['secure_img'][$recnum]) && 0 == strcmp($_SESSION['secure_img'][$recnum], $checkstr))
{
unset($_SESSION['secure_img']);
return true;
@@ -441,4 +441,4 @@ class secure_image
}
?>
?>