You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2009/02/05 22:29:07 UTC

svn commit: r741299 - in /lucene/solr/trunk: CHANGES.txt src/webapp/web/admin/stats.jsp

Author: ehatcher
Date: Thu Feb  5 21:29:07 2009
New Revision: 741299

URL: http://svn.apache.org/viewvc?rev=741299&view=rev
Log:
SOLR-1008: Fix stats.jsp stat item entry name escaping

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/webapp/web/admin/stats.jsp

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=741299&r1=741298&r2=741299&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Thu Feb  5 21:29:07 2009
@@ -239,6 +239,8 @@
 27. SOLR-991: Better error message when parsing solrconfig.xml fails due to malformed XML. Error message notes the name
     of the file being parsed. (Michael Henson via shalin)
 
+28. SOLR-1008: Fix stats.jsp XML encoding for <stat> item entries with ampersands in their names.  (ehatcher)
+
 
 Other Changes
 ----------------------

Modified: lucene/solr/trunk/src/webapp/web/admin/stats.jsp
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/webapp/web/admin/stats.jsp?rev=741299&r1=741298&r2=741299&view=diff
==============================================================================
--- lucene/solr/trunk/src/webapp/web/admin/stats.jsp (original)
+++ lucene/solr/trunk/src/webapp/web/admin/stats.jsp Thu Feb  5 21:29:07 2009
@@ -70,7 +70,7 @@
 <%
       for (int i = 0; i < nl.size() ; i++) {
 %>
-        <stat name="<%= nl.getName(i) %>" >
+        <stat name="<%XML.escapeCharData(nl.getName(i), out);  %>" >
           <%= nl.getVal(i).toString() %>
         </stat>
 <%