Updating branch refs/heads/master
         to 5913569a6832419533383e4a3b4c369897e33b9a (commit)
       from 9d8836226302b78ac71dd26a525d9cca43e016b9 (commit)

commit 5913569a6832419533383e4a3b4c369897e33b9a
Author: Christian Dywan <christ...@twotoasts.de>
Date:   Sat Feb 12 16:39:55 2011 +0100

    Escape < in plain text messages

 postler/postler-content.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index e14025a..654ad39 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -891,6 +891,8 @@ public class Postler.Content : WebKit.WebView {
                         line = GLib.convert (line, -1, "UTF-8", cset, null);
                 }
                 catch (GLib.ConvertError error) { }
+                if (message_part.plain_text)
+                    line = line.replace ("<", "&lt;");
                 if (content_encoding == "base64") {
                     if (message_part.plain_text)
                         line = line.replace ("\n", "<br>");
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to