We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8a8c1e commit 2eed42aCopy full SHA for 2eed42a
confirm.php
@@ -33,7 +33,7 @@
33
if ($row['creation_date'] != '') {
34
$code = substr(md5($e . $row['creation_date'] . $id), 0, 10);
35
36
- if ($code == $m) {
+ if ($code === $m) {
37
$sql = "UPDATE %smembers SET email='%s', last_login=NOW(), creation_date=creation_date WHERE member_id=%d";
38
$result = queryDB($sql, array(TABLE_PREFIX, $e, $id));
39
$msg->addFeedback('CONFIRM_GOOD');
@@ -148,7 +148,7 @@
148
149
150
151
- if ($row['member_id'] != '' && isset($_REQUEST['code']) && $_REQUEST['code'] == $code)
+ if ($row['member_id'] != '' && isset($_REQUEST['code']) && $_REQUEST['code'] === $code)
152
{
153
$_SESSION['valid_user'] = true;
154
$_SESSION['member_id'] = $_REQUEST["member_id"];
0 commit comments