mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Update secure_img_handler.php
$checkstr could be an array so it is better to do strict validation of data type & value.
This commit is contained in:
@@ -81,7 +81,7 @@ class secure_image
|
|||||||
// $sql = e107::getDb();
|
// $sql = e107::getDb();
|
||||||
// $tp = e107::getParser();
|
// $tp = e107::getParser();
|
||||||
|
|
||||||
if(!empty($_SESSION['secure_img'][$recnum]) && 0 == strcmp($_SESSION['secure_img'][$recnum], $checkstr))
|
if(!empty($_SESSION['secure_img'][$recnum]) && $_SESSION['secure_img'][$recnum] === $checkstr )
|
||||||
{
|
{
|
||||||
unset($_SESSION['secure_img']);
|
unset($_SESSION['secure_img']);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user