[Xfce4-commits] <postler:master> Escape < in plain text messages
Christian Dywan
noreply at xfce.org
Sat Feb 12 16:44:05 CET 2011
Updating branch refs/heads/master
to 5913569a6832419533383e4a3b4c369897e33b9a (commit)
from 9d8836226302b78ac71dd26a525d9cca43e016b9 (commit)
commit 5913569a6832419533383e4a3b4c369897e33b9a
Author: Christian Dywan <christian at 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 ("<", "<");
if (content_encoding == "base64") {
if (message_part.plain_text)
line = line.replace ("\n", "<br>");
More information about the Xfce4-commits
mailing list