1
0
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:
Lee Howarth
2016-08-11 15:35:13 +01:00
committed by GitHub
parent 1dbd7423c0
commit 0d4bf2de80

View File

@@ -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;