Issue Bug Closed

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

Wolfgang Kleinbach 10/14/21, 09:28 updated 10/04/22, 14:13

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.

Reviews 2