use hash_equals() correctly

master
Andrew Dolgov 4 years ago
parent e3adacc588
commit f72e6947d5

@ -679,7 +679,7 @@
}
function validate_csrf($csrf_token) {
return hash_equals($csrf_token, $_SESSION['csrf_token']);
return hash_equals($_SESSION['csrf_token'], $csrf_token);
}
function load_user_plugins($owner_uid, $pluginhost = false) {

Loading…
Cancel
Save