Bugfix: invalid CSP report-uri

This commit is contained in:
the-djmaze 2023-06-12 14:13:42 +02:00
parent 9ff3e94870
commit fabc162481

View file

@ -43,7 +43,7 @@ class CSP
{
// report-uri deprecated
unset($this->directives['report-uri']);
if ($this->report) {
if ($this->report || $this->report_only) {
$this->directives['report-uri'] = [\RainLoop\Utils::WebPath() . '?/CspReport'];
}
$params = [];