commit | 733698e8a469a619e466ded25cbf354357e6675e | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Tue Apr 27 08:08:56 2010 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Tue Apr 27 08:08:56 2010 +0000 |
tree | 9accc58df90b6de46fe50f9316512cf568d0f0b7 | |
parent | f1d585b11e93a71502efe01966b0385cd9fcbde9 [diff] |
FELIX-2304: Single quotes need to be escaped in xml attribute values git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@938350 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java index aaadb1d..71a0136 100644 --- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java +++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/XmlWriter.java
@@ -139,7 +139,7 @@ private static String encode(Object o) { String s = o != null ? o.toString() : ""; - return s.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">"); + return s.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("'", "'"); } }