Branch: refs/heads/stable-15.10.x
Home:
https://github.com/xwiki/xwiki-commons
Commit: 3c0d301995ab076573251555cac163d6b02a5686
https://github.com/xwiki/xwiki-commons/commit/3c0d301995ab076573251555cac16…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2023-11-21 (Tue, 21 Nov 2023)
Changed paths:
A
xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/filter/SanitizerDetectorFilter.java
M
xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/filter/SanitizerFilter.java
M xwiki-commons-core/xwiki-commons-xml/src/main/resources/META-INF/components.txt
A
xwiki-commons-core/xwiki-commons-xml/src/test/java/org/xwiki/xml/internal/html/filter/SanitizerDetectorFilterTest.java
Log Message:
-----------
XCOMMONS-2840: Add an API in HTMLCleaner to test if content is affected by restricted
cleaning (#651)
* Add a new filter SanitizerDetectorFilter that allows detecting if HTML content is
affected by the sanitizer.
* Simplify the loop in SanitizerDetectorFilter to not exceed the complexity threshold of
SonarLint.
* Add a unit test for SanitizerDetectorFilter.
(cherry picked from commit 59d33f623cd146104c69a910c7ce4fd5e4a51141)