From 5e175c42dab2481c8403e1a829aa19e42aee0f04 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 12 Feb 2018 16:57:17 +0900 Subject: [PATCH] Update security.php --- system/security.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/security.php b/system/security.php index 1e6bd8c..7bc9f8f 100644 --- a/system/security.php +++ b/system/security.php @@ -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]); + } +}