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

2006/unicorn/src/org/w3c/unicorn/output XMLOutputFormater.java,1.1.2.6,1.1.2.7

From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 27 Aug 2009 18:31:37 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mgjl3-0003Mh-Rk@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/output
In directory hutz:/tmp/cvs-serv12814/src/org/w3c/unicorn/output

Modified Files:
      Tag: dev2
	XMLOutputFormater.java 
Log Message:
Fixed  a bug with file upload (mimetype was not set in UploadRequest.doRequest)
Also use Apache escapers rather than custom one

Index: XMLOutputFormater.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/output/Attic/XMLOutputFormater.java,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- XMLOutputFormater.java	27 Aug 2009 12:42:45 -0000	1.1.2.6
+++ XMLOutputFormater.java	27 Aug 2009 18:31:35 -0000	1.1.2.7
@@ -11,11 +11,11 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.event.EventCartridge;
+import org.apache.velocity.app.event.implement.EscapeXmlReference;
 import org.apache.velocity.exception.MethodInvocationException;
 import org.apache.velocity.exception.ParseErrorException;
 import org.apache.velocity.exception.ResourceNotFoundException;
 import org.w3c.unicorn.Framework;
-import org.w3c.unicorn.util.EscapeXMLEntities;
 import org.w3c.unicorn.util.Property;
 import org.w3c.unicorn.util.Templates;
 import org.w3c.unicorn.util.XHTMLize;
@@ -121,7 +121,7 @@
 		XMLOutputFormater.logger.debug("Error : " + aException + ".");
 		XMLOutputFormater.logger.debug("Writer : " + aWriter + ".");
 		final EventCartridge aEventCartridge = new EventCartridge();
-		aEventCartridge.addEventHandler(new EscapeXMLEntities());
+		aEventCartridge.addEventHandler(new XHTMLize());
 		aEventCartridge.attachToContext(aVelocityContext);
 		aVelocityContext.put("error", aException);
 		Templates.write(sOutputFormat + ".error.vm", aVelocityContext, aWriter);
Received on Thursday, 27 August 2009 18:31:50 UTC

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