Apache Lucene open-source search software
SOLR-1215 use double quotes to enclose attributes in solr.xml
Noble Paul802a9c745842
diff --git a/CHANGES.txt b/CHANGES.txtindex b058ae66fd8..bd1872fe122 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -504,6 +504,8 @@ Other Changes37. SOLR-1184: Add option in solrconfig to open a new IndexReader rather thanusing reopen. Done mainly as a fail-safe in the case that a user runs intoa reopen bug/issue. (Mark Miller)++38. SOLR-1215 use double quotes to enclose attributes in solr.xml (noble)Build----------------------diff --git a/src/java/org/apache/solr/core/CoreContainer.java b/src/java/org/apache/solr/core/CoreContainer.javaindex 7312145ba32..398ae5c7b05 100644--- a/src/java/org/apache/solr/core/CoreContainer.java+++ b/src/java/org/apache/solr/core/CoreContainer.java@@ -686,9 +686,9 @@ public class CoreContainerif (value == null) return;w.write(" ");w.write(name);- w.write("='");+ w.write("=\"");XML.escapeAttributeValue(value.toString(), w);- w.write("'");+ w.write("\"");}/** Writes the cores configuration node for a given core. */