W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/src/org/w3c/unicorn/input URIInputModule.java,1.1.2.2,1.1.2.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 27 Aug 2009 11:15:15 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mgcwl-00023g-T4@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/input
In directory hutz:/tmp/cvs-serv7872/src/org/w3c/unicorn/input

Modified Files:
      Tag: dev2
	URIInputModule.java 
Log Message:
uses StringEscapeUtils.escapeXML() instead of custom EscapeXMLEntities function

Index: URIInputModule.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/Attic/URIInputModule.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- URIInputModule.java	12 Aug 2009 17:28:04 -0000	1.1.2.2
+++ URIInputModule.java	27 Aug 2009 11:15:13 -0000	1.1.2.3
@@ -12,6 +12,7 @@
 
 import javax.activation.MimeType;
 
+import org.apache.commons.lang.StringEscapeUtils;
 import org.w3c.unicorn.Framework;
 import org.w3c.unicorn.contract.EnumInputMethod;
 import org.w3c.unicorn.output.EscapeXMLEntities;
@@ -65,7 +66,7 @@
 		}
 		this.aMimeType = aMimeType;
 		this.sURI = (String) oInputParameterValue;
-		this.sURI = EscapeXMLEntities.escapeText(this.sURI);
+		this.sURI = StringEscapeUtils.escapeXml(this.sURI);
 	}
 
 	/**
Received on Thursday, 27 August 2009 11:15:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC