1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-25 20:45:16 +02:00

[ticket/11343] Use === when checking stored user_actkey against user input.

Use strict comparison when checking whether stored user_actkey is equal to user
input.

PHPBB3-11343
This commit is contained in:
Andreas Fischer
2013-01-25 19:49:02 +01:00
parent 229d1092f8
commit 305b2b8f48

View File

@ -51,7 +51,7 @@ class ucp_activate
trigger_error('ALREADY_ACTIVATED');
}
if (($user_row['user_inactive_reason'] == INACTIVE_MANUAL) || $user_row['user_actkey'] != $key)
if (($user_row['user_inactive_reason'] == INACTIVE_MANUAL) || $user_row['user_actkey'] !== $key)
{
trigger_error('WRONG_ACTIVATION');
}