You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2019/06/26 10:28:14 UTC
svn commit: r1862121 -
/webservices/wss4j/branches/2_2_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/util/EncryptionUtils.java
Author: coheigea
Date: Wed Jun 26 10:28:14 2019
New Revision: 1862121
URL: http://svn.apache.org/viewvc?rev=1862121&view=rev
Log:
Disabling doctypes in EncryptionUtils
Modified:
webservices/wss4j/branches/2_2_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/util/EncryptionUtils.java
Modified: webservices/wss4j/branches/2_2_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/util/EncryptionUtils.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/2_2_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/util/EncryptionUtils.java?rev=1862121&r1=1862120&r2=1862121&view=diff
==============================================================================
--- webservices/wss4j/branches/2_2_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/util/EncryptionUtils.java (original)
+++ webservices/wss4j/branches/2_2_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/util/EncryptionUtils.java Wed Jun 26 10:28:14 2019
@@ -393,12 +393,12 @@ public final class EncryptionUtils {
Document document = null;
try {
- document = org.apache.xml.security.utils.XMLUtils.read(new ByteArrayInputStream(bytes), false);
+ document = org.apache.xml.security.utils.XMLUtils.read(new ByteArrayInputStream(bytes));
} catch (SAXException ex) {
// A prefix may not have been bound, try to fix the DOM Element in this case.
String fixedElementStr = setParentPrefixes(encData, new String(bytes));
document = org.apache.xml.security.utils.XMLUtils.read(
- new ByteArrayInputStream(fixedElementStr.getBytes()), false);
+ new ByteArrayInputStream(fixedElementStr.getBytes()));
}
Node decryptedNode =