Update security.php
This commit is contained in:
parent
015a5c2e35
commit
5e175c42da
|
@ -45,3 +45,9 @@ if(!function_exists("get_session_token")) {
|
||||||
return $_SESSION['random_id'];
|
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]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user