[Xfce4-commits] <postler:master> Don't linkify invalid addresses

Christian Dywan noreply at xfce.org
Fri Jan 21 17:28:03 CET 2011


Updating branch refs/heads/master
         to 018f346e0628170d708fcc4901c12af058c2ddce (commit)
       from 0e4eea651166f1addf4a67a729c6730a14b34ffa (commit)

commit 018f346e0628170d708fcc4901c12af058c2ddce
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Jan 20 20:01:44 2011 +0100

    Don't linkify invalid addresses

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

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 6d82701..b3d36f2 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -196,6 +196,10 @@ public class Postler.Content : WebKit.WebView {
         foreach (string address in addresses.split (",")) {
             if (address == "")
                 continue;
+            if (!address.contains ("@")) {
+                linkified.append (html_escape (address));
+                continue;
+            }
             string[] parsed = Postler.Messages.parse_address (address);
             string name = parsed[0];
             string cleaned = parsed[1];



More information about the Xfce4-commits mailing list