[BUGFIX] Consider EqualityInterface in SourceCollection
The behavior of `EqualityInterface` has to be applied when comparing instances that implement this interface to find duplicates in a `SourceCollection`. For instance two instances of `UriValue`, that have the same URI value could not be handled correctly - either there are duplicates, or values cannot be removed from a collection. Resolves: #100621 Releases: main Change-Id: I48e6d1d9006260065fee812d648274e0fbbf2d75 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78712 Reviewed-by:Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Chris Müller <typo3@krue.ml> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/SourceCollection.php 17 additions, 10 deletions...asses/Security/ContentSecurityPolicy/SourceCollection.php
- typo3/sysext/core/Tests/Unit/Security/ContentSecurityPolicy/SourceCollectionTest.php 55 additions, 0 deletions...t/Security/ContentSecurityPolicy/SourceCollectionTest.php
Please register or sign in to comment