mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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)
|
||||
{
|
||||
if ($_SERVER['REQUEST_METHOD'] !== 'POST')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$referer)
|
||||
{
|
||||
$referer = strval($_SERVER['HTTP_REFERER']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue