mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #1966 warning in PHP 8.0
This commit is contained in:
parent
34cd3ebf66
commit
34517e83ce
1 changed files with 2 additions and 2 deletions
|
|
@ -330,11 +330,11 @@ class Security
|
|||
*/
|
||||
public static function checkCSRF($referer = null)
|
||||
{
|
||||
if ($token = $_SERVER['HTTP_X_CSRF_TOKEN'])
|
||||
if ($token = isset($_SERVER['HTTP_X_CSRF_TOKEN']) ? $_SERVER['HTTP_X_CSRF_TOKEN'] : null)
|
||||
{
|
||||
return Session::verifyToken($token);
|
||||
}
|
||||
elseif ($token = $_REQUEST['_rx_csrf_token'])
|
||||
elseif ($token = isset($_REQUEST['_rx_csrf_token']) ? $_REQUEST['_rx_csrf_token'] : null)
|
||||
{
|
||||
return Session::verifyToken($token);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue