diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-09-07 20:59:19 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-09-07 20:59:19 +0000 |
commit | bfb86f8a455f6e009c0ec2db83159b8dba37a0e7 (patch) | |
tree | 3633243cfae5a22ff1c243dc8ff05a1de14a9366 /poi-ooxml | |
parent | 0bb651955eb1afc749d0e52079baf44e3ce9781a (diff) | |
download | poi-bfb86f8a455f6e009c0ec2db83159b8dba37a0e7.tar.gz poi-bfb86f8a455f6e009c0ec2db83159b8dba37a0e7.zip |
don't allow SAX parser to accept DTDs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893075 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r-- | poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index cb736d599e..29bbde1239 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -1887,7 +1887,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { SAXParseException e = assertThrows(SAXParseException.class, () -> reader.parse(new InputSource(zip.getInputStream(ze)))); assertNotNull(e.getMessage()); - assertTrue(e.getMessage().contains("more than \"1\" entity")); + assertNotEquals(isOldXercesActive(), e.getMessage().contains("DOCTYPE is disallowed when the feature")); } } |