Project

General

Profile

Actions

Bug #93884

closed

fileadmin/.htaccess (resources-root-htaccess) partially blocks SVG files

Added by Marco H about 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-04-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

So with version 10.4.11, the file "resources-root-htaccess", which generates .htaccess inside fileadmin, has been updated to a stricter CSP.
This causes problems with SVG files uploaded since SVG files may contain style and script tags, also style attributes. The SVG may then be all black or lack animation.

Would the best approach be to match svg files (like it is done with pdf) and change the CSP?


Files

test.svg (1.53 KB) test.svg Marco H, 2021-05-14 21:08
resources-root-htaccess (1.89 KB) resources-root-htaccess Andreas Hager, 2021-08-19 17:57
svg-style.svg (921 Bytes) svg-style.svg Test SVG for CSP Oliver Hader, 2022-08-31 09:59

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #93035: fileadmin/.htaccess prevents Safari from accessing PDF files (after latest security update)Closed2020-12-09

Actions
Related to TYPO3 Core - Bug #100041: Unexpected warning in environment status check after new CSP default for svg files in resources root htaccessResolved2023-02-27

Actions
Has duplicate TYPO3 Core - Bug #95312: SVG Style-Tag CSP-Block / Firefox-BugClosed2021-09-22

Actions
Actions

Also available in: Atom PDF