lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r713614 - /lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
Date Thu, 13 Nov 2008 02:03:49 GMT
Author: ehatcher
Date: Wed Nov 12 18:03:48 2008
New Revision: 713614

URL: http://svn.apache.org/viewvc?rev=713614&view=rev
Log:
Add EscapeTool into context, allowing url, html, and other escaping capabilties

Modified:
    lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java

Modified: lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java?rev=713614&r1=713613&r2=713614&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
(original)
+++ lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
Wed Nov 12 18:03:48 2008
@@ -20,6 +20,7 @@
 import org.apache.solr.common.util.NamedList;
 import org.apache.velocity.Template;
 import org.apache.velocity.VelocityContext;
+import org.apache.velocity.tools.generic.EscapeTool;
 import org.apache.velocity.app.VelocityEngine;
 
 import java.io.File;
@@ -38,6 +39,7 @@
     context.put("request", request);
     context.put("response", response);
     context.put("page",new PageTool(request,response));
+    context.put("esc", new EscapeTool());
     template.merge(context, writer);
   }
 



Mime
View raw message