Skip to content

Commit 2eed42a

Browse files
committed
5653 replaced loose with strict comparison
1 parent a8a8c1e commit 2eed42a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

confirm.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
if ($row['creation_date'] != '') {
3434
$code = substr(md5($e . $row['creation_date'] . $id), 0, 10);
3535

36-
if ($code == $m) {
36+
if ($code === $m) {
3737
$sql = "UPDATE %smembers SET email='%s', last_login=NOW(), creation_date=creation_date WHERE member_id=%d";
3838
$result = queryDB($sql, array(TABLE_PREFIX, $e, $id));
3939
$msg->addFeedback('CONFIRM_GOOD');
@@ -148,7 +148,7 @@
148148

149149
$code = substr(md5($e . $row['creation_date'] . $id), 0, 10);
150150

151-
if ($row['member_id'] != '' && isset($_REQUEST['code']) && $_REQUEST['code'] == $code)
151+
if ($row['member_id'] != '' && isset($_REQUEST['code']) && $_REQUEST['code'] === $code)
152152
{
153153
$_SESSION['valid_user'] = true;
154154
$_SESSION['member_id'] = $_REQUEST["member_id"];

0 commit comments

Comments
 (0)