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("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
+        return s.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("'", "&apos;");
     }
 
 }