Skip to content

Commit

Permalink
Silent hash_equals warnings
Browse files Browse the repository at this point in the history
This can happen in case of params get converted to integers.

Fixes #13390

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 15, 2017
1 parent 29b68ce commit 40a0dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/common.inc.php
Expand Up @@ -375,7 +375,7 @@
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (PMA_isValid($_POST['token'])) {
$token_provided = true;
$token_mismatch = ! hash_equals($_SESSION[' PMA_token '], $_POST['token']);
$token_mismatch = ! @hash_equals($_SESSION[' PMA_token '], $_POST['token']);
}

if ($token_mismatch) {
Expand Down

0 comments on commit 40a0dba

Please sign in to comment.