1
0
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:
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(); // $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;