mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +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)
|
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);
|
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);
|
return Session::verifyToken($token);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue