You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2004/03/04 11:55:53 UTC
cvs commit: xml-security/src/org/apache/xml/security/encryption XMLCipher.java
blautenb 2004/03/04 02:55:53
Modified: src/org/apache/xml/security/encryption XMLCipher.java
Log:
Gather all text from CipherValue, as reported by Sachin Tarnekar
Revision Changes Path
1.21 +2 -1 xml-security/src/org/apache/xml/security/encryption/XMLCipher.java
Index: XMLCipher.java
===================================================================
RCS file: /home/cvs/xml-security/src/org/apache/xml/security/encryption/XMLCipher.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- XMLCipher.java 20 Feb 2004 09:28:13 -0000 1.20
+++ XMLCipher.java 4 Mar 2004 10:55:53 -0000 1.21
@@ -55,6 +55,7 @@
import org.apache.xml.security.utils.Constants;
import org.apache.xml.security.utils.ElementProxy;
import org.apache.xml.security.utils.EncryptionConstants;
+import org.apache.xml.security.utils.XMLUtils;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.apache.xml.utils.URI;
@@ -2250,7 +2251,7 @@
*/
CipherValue newCipherValue(Element element) throws
XMLEncryptionException {
- String value = element.getFirstChild().getNodeValue();
+ String value = XMLUtils.getFullTextChildrenFromElement(element);
CipherValue result = newCipherValue(value);