mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Delete JsError action
This commit is contained in:
parent
66b23747c7
commit
1b2306c7b0
4 changed files with 1 additions and 106 deletions
|
|
@ -126,7 +126,7 @@ class ServiceActions
|
|||
|
||||
try
|
||||
{
|
||||
if ($this->oHttp->IsPost() && !in_array($sAction, array('JsInfo', 'JsError')) &&
|
||||
if ($this->oHttp->IsPost() &&
|
||||
$this->Config()->Get('security', 'csrf_protection', false) &&
|
||||
$this->oHttp->GetPost('XToken', '') !== \RainLoop\Utils::GetCsrfToken())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue