You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2022/01/07 08:22:23 UTC

[sling-org-apache-sling-xss] branch issue/SLING-10953 created (now b158c2f)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to branch issue/SLING-10953
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-xss.git.


      at b158c2f  SLING-10953 - Update dependency Antisamy version from 1.5.10 to 1.6.4

This branch includes the following new commits:

     new b158c2f  SLING-10953 - Update dependency Antisamy version from 1.5.10 to 1.6.4

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[sling-org-apache-sling-xss] 01/01: SLING-10953 - Update dependency Antisamy version from 1.5.10 to 1.6.4

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch issue/SLING-10953
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-xss.git

commit b158c2fb8e2d9101f207264511576b2a81db1257
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Jan 7 09:22:08 2022 +0100

    SLING-10953 - Update dependency Antisamy version from 1.5.10 to 1.6.4
    
    Update and fix compiler errors. Tests currently fail due to xalan not supporting
    the 'accessExternalDTD' and 'accessExternalStylesheet' attributes.
---
 pom.xml                                                          | 2 +-
 src/main/java/org/apache/sling/xss/impl/FallbackSlingPolicy.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 575edef..592a3a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -187,7 +187,7 @@
         <dependency>
             <groupId>org.owasp.antisamy</groupId>
             <artifactId>antisamy</artifactId>
-            <version>1.5.10</version>
+            <version>1.6.4</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/src/main/java/org/apache/sling/xss/impl/FallbackSlingPolicy.java b/src/main/java/org/apache/sling/xss/impl/FallbackSlingPolicy.java
index ddf4d0d..5e8145e 100644
--- a/src/main/java/org/apache/sling/xss/impl/FallbackSlingPolicy.java
+++ b/src/main/java/org/apache/sling/xss/impl/FallbackSlingPolicy.java
@@ -31,7 +31,7 @@ public class FallbackSlingPolicy extends InternalPolicy {
     private final Object aTagLock = new Object();
 
     public FallbackSlingPolicy(InputStream inputStream) throws PolicyException {
-       super(null, getSimpleParseContext(getTopLevelElement(new InputSource(inputStream))));
+       super(getSimpleParseContext(getTopLevelElement(new InputSource(inputStream), () -> new InputSource(inputStream))));
 
     }