Project

General

Profile

Actions

Bug #104873

closed

Guard access to $site->getConfiguration()['contentSecurityPolicies']

Added by Thomas Hohn 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Content Security Policy
Start date:
2024-09-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

We have experienced some issues where

$site->getConfiguration()['contentSecurityPolicies']

results in a PHP warning since 'contentSecurityPolicies' is not set in the site configuration.
Instead the access should be guarded with a?? [] clause

Actions

Also available in: Atom PDF