mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix not recognizing CSRF token submitted as part of JSON body
This commit is contained in:
parent
9372cdc4bb
commit
1e27bae404
1 changed files with 6 additions and 1 deletions
|
|
@ -1203,11 +1203,16 @@ class Context
|
|||
|
||||
foreach($params as $key => $val)
|
||||
{
|
||||
if ($val !== '' && !isset($request_args[$key]))
|
||||
if ($val !== '' && $val !== null && !isset($request_args[$key]))
|
||||
{
|
||||
$request_args[$key] = $val;
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($params['_rx_csrf_token']) && !isset($_REQUEST['_rx_csrf_token']))
|
||||
{
|
||||
$_REQUEST['_rx_csrf_token'] = $params['_rx_csrf_token'];
|
||||
}
|
||||
}
|
||||
|
||||
// Filter all arguments and set them to Context.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue