Issue Bug Closed

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

Thomas Hohn 09/10/24, 09:54 updated 10/15/24, 09:06

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

Reviews 2