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 #1

Updated by Gerrit Code Review 2 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85977

Actions #2

Updated by Gerrit Code Review 2 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85977

Actions #3

Updated by Gerrit Code Review 2 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85954

Actions #4

Updated by Anonymous 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 1 month ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF