SOLR-1008: Fix stats.jsp stat item entry name escaping

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@741299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2009-02-05 21:29:07 +00:00
parent 34b0ed7cff
commit 8347bf242b
2 changed files with 3 additions and 1 deletions

View File

@ -239,6 +239,8 @@ Bug Fixes
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
----------------------

View File

@ -70,7 +70,7 @@ for (SolrInfoMBean.Category cat : SolrInfoMBean.Category.values()) {
<%
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>
<%