Project

General

Profile

Actions

Bug #95644

closed

favicon doesn't work in TYPO3 11.5.1 anymore / FilePathSanitizer problem?

Added by Wolfgang Kleinbach about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2021-10-14
Due date:
% Done:

100%

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

Description

page.favicon.file (as a constant) und page.shortcutIcon (in setup) don't work anymore.

No favicon in output anymore.

Still works in TYPO3 11.5.0.

Perhaps this is caused by an error in FilePathSanitizer, which also didn't work as expected in some extensions:

GeneralUtility::makeInstance(FilePathSanitizer::class)->sanitize('EXT:myext/...'])

returns
/typo3conf/ext/myext/...

which "is not located in the allowed paths" (error message) and not the following string without the leading slash (as under 11.5.0):
typo3conf/ext/myext/...

Trying to add the $allowExtensionPath
GeneralUtility::makeInstance(FilePathSanitizer::class)->sanitize('EXT:myext/...'], true)

returns
EXT:myext/...

which is not working either.

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #95481: Configuring custom PageRenderer template can throw exceptionClosed2021-10-05

Actions
Has duplicate TYPO3 Core - Bug #95726: TS: shortcutIcon no longer resolves EXT-pathsClosed2021-10-22

Actions
Actions

Also available in: Atom PDF