You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2004/10/05 20:49:32 UTC
cvs commit: xml-security/src/org/apache/xml/security/transforms/params InclusiveNamespaces.java
raul 2004/10/05 11:49:32
Modified: src/org/apache/xml/security/transforms/params
InclusiveNamespaces.java
Log:
Fix a StringIndexOutOfBoundsException when creating the transform element.
Revision Changes Path
1.7 +3 -3 xml-security/src/org/apache/xml/security/transforms/params/InclusiveNamespaces.java
Index: InclusiveNamespaces.java
===================================================================
RCS file: /home/cvs/xml-security/src/org/apache/xml/security/transforms/params/InclusiveNamespaces.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- InclusiveNamespaces.java 3 Aug 2004 18:01:22 -0000 1.6
+++ InclusiveNamespaces.java 5 Oct 2004 18:49:32 -0000 1.7
@@ -86,7 +86,7 @@
if (prefix.equals("xmlns")) {
sb.append("#default ");
} else {
- sb.append(prefix.substring("xmlns:".length()) + " ");
+ sb.append(prefix + " ");
}
}
@@ -127,8 +127,8 @@
* is returned as a Set containing the following Strings:
* <UL>
* <LI><code>xmlns</code></LI>
- * <LI><code>xmlns:xenc</code></LI>
- * <LI><code>xmlns:ds</code></LI>
+ * <LI><code>xenc</code></LI>
+ * <LI><code>ds</code></LI>
* </UL>
*
* @param inclusiveNamespaces