SOLR-1215 use double quotes to enclose attributes in solr.xml

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@783715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-06-11 10:04:37 +00:00
parent 56d398c149
commit 802a9c7458
2 changed files with 4 additions and 2 deletions

View File

@ -504,6 +504,8 @@ Other Changes
37. SOLR-1184: Add option in solrconfig to open a new IndexReader rather than 37. SOLR-1184: Add option in solrconfig to open a new IndexReader rather than
using reopen. Done mainly as a fail-safe in the case that a user runs into using reopen. Done mainly as a fail-safe in the case that a user runs into
a reopen bug/issue. (Mark Miller) a reopen bug/issue. (Mark Miller)
38. SOLR-1215 use double quotes to enclose attributes in solr.xml (noble)
Build Build
---------------------- ----------------------

View File

@ -686,9 +686,9 @@ public class CoreContainer
if (value == null) return; if (value == null) return;
w.write(" "); w.write(" ");
w.write(name); w.write(name);
w.write("='"); w.write("=\"");
XML.escapeAttributeValue(value.toString(), w); XML.escapeAttributeValue(value.toString(), w);
w.write("'"); w.write("\"");
} }
/** Writes the cores configuration node for a given core. */ /** Writes the cores configuration node for a given core. */