Actions
Bug #104873
closedGuard access to $site->getConfiguration()['contentSecurityPolicies']
Status:
Closed
Priority:
Must have
Assignee:
Category:
Content Security Policy
Target version:
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