santiagopg 02/04/25 13:45:27
Modified: java/src/org/apache/xalan/xsltc/compiler/util Util.java
Log:
Replacing '/' by '$slash$' and ':' by '$colon$' in escape() (bugzilla 6289)
Revision Changes Path
1.7 +4 -2
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/Util.java
Index: Util.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/Util.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Util.java 24 Apr 2002 17:03:16 -0000 1.6
+++ Util.java 25 Apr 2002 20:45:27 -0000 1.7
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Util.java,v 1.6 2002/04/24 17:03:16 santiagopg Exp $
+ * @(#)$Id: Util.java,v 1.7 2002/04/25 20:45:27 santiagopg Exp $
*
* The Apache Software License, Version 1.1
*
@@ -177,11 +177,13 @@
}
/**
- * Replace occurances of '.' with '$dot$' and '-' with '$dash$'
+ * Replace occurances of '.', '-', '/' and ':'
*/
public static String escape(String input) {
input = replace(input, '.', "$dot$");
input = replace(input, '-', "$dash$");
+ input = replace(input, '/', "$slash$");
+ input = replace(input, ':', "$colon$");
return input;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]