2006/unicorn/src/org/w3c/unicorn/response/impl OldContextXBeans.java,1.3,1.4

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

Modified Files:
	OldContextXBeans.java 
Log Message:
xmlEscapes context messages

Index: OldContextXBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/OldContextXBeans.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- OldContextXBeans.java	22 Oct 2009 12:58:51 -0000	1.3
+++ OldContextXBeans.java	6 May 2010 10:58:59 -0000	1.4
@@ -1,5 +1,6 @@
 package org.w3c.unicorn.response.impl;
 
+import org.apache.commons.lang.StringEscapeUtils;
 import org.w3c.unicorn.response.Context;
 
 public class OldContextXBeans implements Context {
@@ -10,7 +11,7 @@
 	
 	public OldContextXBeans(String context, Integer line, Integer column) {
 		if (context != null)
-			this.context = context.trim();
+			this.context = StringEscapeUtils.escapeXml(context.trim());
 		this.line = line;
 		this.column = column;
 	}

Received on Thursday, 6 May 2010 10:59:03 UTC