Clone in a terminal:
Commit 2958c27
Johan Mattsson - 2015-05-17T13:58:31+00:00
2958c278d24940608ec6b98ba0cee6a06d718991johan.mattsson.m@gmail.com

Fix ' in xml encoder

Changed files (1)

Diff

diff --git a/libbirdxml/Xml.vala b/libbirdxml/Xml.valaindex e39d59d..808546d 100644--- a/libbirdxml/Xml.vala+++ b/libbirdxml/Xml.vala@@ -192,7 +192,7 @@ public class XmlParser : GLib.Object { 	public static string decode (string s) { 		string t; 		t = s.replace ("&quot;", "\"");-		t = t.replace ("&apos;;", "'");+		t = t.replace ("&apos;", "'"); 		t = t.replace ("&lt;", "<"); 		t = t.replace ("&gt;", ">"); 		t = t.replace ("&amp;", "&");@@ -202,7 +202,7 @@ public class XmlParser : GLib.Object { 	public static string encode (string s) { 		string t; 		t = s.replace ("\"", "&quot;");-		t = t.replace ("'", "&apos;;");+		t = t.replace ("'", "&apos;"); 		t = t.replace ("<", "&lt;"); 		t = t.replace (">", "&gt;"); 		t = t.replace ("&", "&amp;");

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112