Actions
Task #94837
closedBug #94787: Tracking issue related to HTML sanitization issues
Forward initiator to typo3/html-sanitizer
Start date:
2021-08-12
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
A new SanitizerInitiator
is added and forwarded to typo3/html-sanitizer
. This allows to get a full stack-trace when HTML nodes have been sanitized/modified and allows to debug the actual cause (initiator) much better.
How to test?¶
composer req typo3/html-sanitizer:dev-main
- (or manually clone into
vendor/typo3/html-sanitizer
directory from https://github.com/TYPO3/html-sanitizer)
- (or manually clone into
- apply patch from https://review.typo3.org/c/Packages/TYPO3.CMS/+/70484 (TYPO3 v10.4 currently)
- have logging enabled as described in https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5.x/Important-94484-IntroduceHTMLSanitizer.html#debugging-logging
- have debugging enabled via TypoScript, like
config.debug = 1
In case tags/attrs are modified, this will be shown in the log file, next to new initiator
stack-trace.
Actions