mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +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();
|
||||
// $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']);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user