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

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 85977 status New Under Review 09/10/24, 10:03

  2. Gerrit Code Review pushed patch set 2 for main to change 85977 09/10/24, 13:15

  3. Gerrit Code Review pushed patch set 1 for 12.4 to change 85954 09/10/24, 14:38

  4. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 09/10/24, 14:40

    Applied in changeset commit:93b7b68a6097edca48bdc0b5b07ec4995715e364.

  5. Benni Mack changed status Resolved Closed 10/15/24, 09:06