diff --git a/composer.json b/composer.json index ffecbd55a240f78e2310341568f2598cea94fc4d..688cf495dbf2811740e8a77e40be8a2434166959 100644 --- a/composer.json +++ b/composer.json @@ -97,7 +97,7 @@ "typo3/class-alias-loader": "^1.1.4", "typo3/cms-cli": "^3.1", "typo3/cms-composer-installers": "^2.0 || ^3.0 || ^4.0", - "typo3/html-sanitizer": "^2.0.16", + "typo3/html-sanitizer": "^2.1.0", "typo3/phar-stream-wrapper": "^3.1.7", "typo3/symfony-psr-event-dispatcher-adapter": "^1.0 || ^2.0", "typo3fluid/fluid": "^2.7.2" diff --git a/composer.lock b/composer.lock index 6ea26be644a07e356972ab396325e47356444783..feb087cf9e57bc0ae478a0c0b1c500e7d38d6aee 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "7f1fe3202e967d17ff8e1d94ae8b799d", + "content-hash": "6cd6898eae14c87769230274619b8420", "packages": [ { "name": "bacon/bacon-qr-code", @@ -4993,16 +4993,16 @@ }, { "name": "typo3/html-sanitizer", - "version": "v2.0.16", + "version": "v2.1.0", "source": { "type": "git", "url": "https://github.com/TYPO3/html-sanitizer.git", - "reference": "60bfdc7f9b394d0236e16ee4cea8372a7defa493" + "reference": "2f195f529dd6570d28f838e8340a08025c37fb5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/TYPO3/html-sanitizer/zipball/60bfdc7f9b394d0236e16ee4cea8372a7defa493", - "reference": "60bfdc7f9b394d0236e16ee4cea8372a7defa493", + "url": "https://api.github.com/repos/TYPO3/html-sanitizer/zipball/2f195f529dd6570d28f838e8340a08025c37fb5b", + "reference": "2f195f529dd6570d28f838e8340a08025c37fb5b", "shasum": "" }, "require": { @@ -5038,9 +5038,9 @@ "description": "HTML sanitizer aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values.", "support": { "issues": "https://github.com/TYPO3/html-sanitizer/issues", - "source": "https://github.com/TYPO3/html-sanitizer/tree/v2.0.16" + "source": "https://github.com/TYPO3/html-sanitizer/tree/v2.1.0" }, - "time": "2022-09-13T07:29:06+00:00" + "time": "2022-12-05T12:47:34+00:00" }, { "name": "typo3/phar-stream-wrapper", diff --git a/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php b/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php index c9fc740d7dc6af93579e5d8351f0e56414ad3ac4..15160b7171fbe2794636664c09b869975f9540e3 100644 --- a/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php +++ b/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php @@ -61,7 +61,7 @@ class DefaultSanitizerBuilder extends CommonBuilder implements SingletonInterfac { $behavior = $this->createBehavior(); $visitor = GeneralUtility::makeInstance(CommonVisitor::class, $behavior); - return GeneralUtility::makeInstance(Sanitizer::class, $visitor); + return GeneralUtility::makeInstance(Sanitizer::class, $behavior, $visitor); } protected function createBehavior(): Behavior diff --git a/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php b/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php index 528ed2f6a4a4774975c92632d7b29ce3b8a9a705..dab8de58ea82880183f6ee62ea5cc0d3bbd48656 100644 --- a/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php +++ b/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php @@ -66,7 +66,7 @@ class I18nSanitizerBuilder implements BuilderInterface ); $visitor = GeneralUtility::makeInstance(CommonVisitor::class, $behavior); - return GeneralUtility::makeInstance(Sanitizer::class, $visitor); + return GeneralUtility::makeInstance(Sanitizer::class, $behavior, $visitor); } /** diff --git a/typo3/sysext/core/composer.json b/typo3/sysext/core/composer.json index 63c66a882951ba73bd016e1cc200d2116f54f707..e2133bd1d1d58cdc7c008eba5825f2ade312d6ae 100644 --- a/typo3/sysext/core/composer.json +++ b/typo3/sysext/core/composer.json @@ -73,7 +73,7 @@ "typo3/class-alias-loader": "^1.1.4", "typo3/cms-cli": "^3.1", "typo3/cms-composer-installers": "^2.0 || ^3.0 || ^4.0", - "typo3/html-sanitizer": "^2.0.16", + "typo3/html-sanitizer": "^2.1.0", "typo3/phar-stream-wrapper": "^3.1.7", "typo3/symfony-psr-event-dispatcher-adapter": "^1.0 || ^2.0", "typo3fluid/fluid": "^2.7.2"