mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-24 22:25:09 +03:00
CSP block legacy HTML element types such as <object>, <embed>, and <applet> on Raw actions
This commit is contained in:
parent
ceb9f68ded
commit
61ebcb6ed4
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ class ServiceActions
|
||||||
$sMethodName = 'Raw'.$sAction;
|
$sMethodName = 'Raw'.$sAction;
|
||||||
if (\method_exists($this->oActions, $sMethodName)) {
|
if (\method_exists($this->oActions, $sMethodName)) {
|
||||||
\header('X-Raw-Action: '.$sMethodName);
|
\header('X-Raw-Action: '.$sMethodName);
|
||||||
\header('Content-Security-Policy: script-src \'none\'; child-src \'none\'');
|
\header('Content-Security-Policy: script-src \'none\'; child-src \'none\'; object-src \'none\'');
|
||||||
|
|
||||||
$sRawError = '';
|
$sRawError = '';
|
||||||
$this->oActions->SetActionParams(array(
|
$this->oActions->SetActionParams(array(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue