Update security.php

This commit is contained in:
Namhyeon Go 2018-02-12 16:57:17 +09:00 committed by GitHub
parent 015a5c2e35
commit 5e175c42da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,3 +45,9 @@ if(!function_exists("get_session_token")) {
return $_SESSION['random_id'];
}
}
if(!function_exists("check_token_abuse_by_requests")) {
function check_token_abuse_by_requests($name, $requests) {
return check_token_abuse($requests['_POST'][$name], $_SESSION[$name]);
}
}