[TASK] Forward initiator to typo3/html-sanitizer
A new `SanitizerInitiator` is added and forwarded to `typo3/html-sanitizer`. This allows getting a full stack-trace when HTML nodes have been sanitized/modified and to debug the actual cause (initiator) much better. To receive corresponding initiator stack-traces * logging for TYPO3.HtmlSanitizer namespace needs to be enabled * TypoScript `config.debug = 1` must be set, or as a fall-back `$GLOBALS['TYPO3_CONF_VARS']['FE']['debug'] = true;` must be set * HTML sanitizer must have found and modified invalid tags/attributes Resolves: #94837 Releases: master, 11.3, 10.4, 9.5 Change-Id: I0239785d347d2c4ad6153ccb26130556399949d8 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70490 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- typo3/sysext/core/Classes/Html/RteHtmlParser.php 2 additions, 1 deletiontypo3/sysext/core/Classes/Html/RteHtmlParser.php
- typo3/sysext/core/Classes/Html/SanitizerInitiator.php 40 additions, 0 deletionstypo3/sysext/core/Classes/Html/SanitizerInitiator.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 14 additions, 1 deletion.../frontend/Classes/ContentObject/ContentObjectRenderer.php
Please register or sign in to comment