mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
Fix #593 incorrect result from checkCSRF() in GET+JSON request
This commit is contained in:
parent
9a1936de40
commit
4f52122a3c
1 changed files with 0 additions and 5 deletions
|
|
@ -307,11 +307,6 @@ class Security
|
||||||
*/
|
*/
|
||||||
public static function checkCSRF($referer = null)
|
public static function checkCSRF($referer = null)
|
||||||
{
|
{
|
||||||
if ($_SERVER['REQUEST_METHOD'] !== 'POST')
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$referer)
|
if (!$referer)
|
||||||
{
|
{
|
||||||
$referer = strval($_SERVER['HTTP_REFERER']);
|
$referer = strval($_SERVER['HTTP_REFERER']);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue