Actions
Bug #95644
closedfavicon doesn't work in TYPO3 11.5.1 anymore / FilePathSanitizer problem?
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.
Actions