2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.1.2.12,1.1.2.13

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv12814/src/org/w3c/unicorn

Modified Files:
      Tag: dev2
	UnicornCall.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: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/Attic/UnicornCall.java,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -d -r1.1.2.12 -r1.1.2.13
--- UnicornCall.java	27 Aug 2009 14:04:58 -0000	1.1.2.12
+++ UnicornCall.java	27 Aug 2009 18:31:36 -0000	1.1.2.13
@@ -30,6 +30,7 @@
 import org.apache.velocity.Template;
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.event.EventCartridge;
+import org.apache.velocity.app.event.implement.EscapeXmlReference;
 import org.w3c.dom.Document;
 import org.w3c.unicorn.contract.CallParameter;
 import org.w3c.unicorn.contract.EnumInputMethod;
@@ -52,7 +53,6 @@
 import org.w3c.unicorn.tasklisttree.TLTExec;
 import org.w3c.unicorn.tasklisttree.TLTIf;
 import org.w3c.unicorn.tasklisttree.TLTNode;
-import org.w3c.unicorn.util.EscapeXMLEntities;
 import org.w3c.unicorn.util.Property;
 import org.w3c.unicorn.util.TemplateHelper;
 import org.w3c.unicorn.util.Templates;
@@ -884,7 +884,7 @@
 				VelocityContext context = new VelocityContext(Framework.getLanguageContexts().get(lang));
 				
 				final EventCartridge aEventCartridge = new EventCartridge();
-				aEventCartridge.addEventHandler(new EscapeXMLEntities());
+				aEventCartridge.addEventHandler(new EscapeXmlReference());
 				aEventCartridge.attachToContext(context);
 				
 				if (e.getMessage() != null)	

Received on Thursday, 27 August 2009 18:31:52 UTC