Skip to content
Snippets Groups Projects
Commit d7d5a5fc authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[BUGFIX] Ensure string is passed to f:sanitize.html view helper

Resolves: #95573
Releases: master, 10.4
Change-Id: I13742f80588d8d1d566d08e7b51c165a5139fe50
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71538


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent 4582c934
Branches
Tags
No related merge requests found
......@@ -94,7 +94,7 @@ class HtmlViewHelper extends AbstractViewHelper
{
$value = $renderChildrenClosure();
$build = $arguments['build'] ?? 'default';
return static::createSanitizer($build)->sanitize($value);
return static::createSanitizer($build)->sanitize((string)$value);
}
protected static function createSanitizer(string $build): Sanitizer
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment