Author: gnodet
Date: Tue Apr 27 08:08:56 2010
New Revision: 938350
URL: http://svn.apache.org/viewvc?rev=938350&view=rev
Log:
FELIX-2304: Single quotes need to be escaped in xml attribute values
Modified:
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java
Modified:
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java
URL:
http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java?rev=938350&r1=938349&r2=938350&view=diff
==============================================================================
---
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java
(original)
+++
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java
Tue Apr 27 08:08:56 2010
@@ -139,7 +139,7 @@ public class XmlWriter
private static String encode(Object o) {
String s = o != null ? o.toString() : "";
- return s.replaceAll("&", "&").replaceAll("<",
"<").replaceAll(">", ">");
+ return s.replaceAll("&", "&").replaceAll("<",
"<").replaceAll(">", ">").replaceAll("'", "'");
}
}