[empathy] ContactInfo: always escape IRC channel names in markup



commit 91d37340b5b2495cf8eed1f53482aa4e046964ae
Author: Will Thompson <will thompson collabora co uk>
Date:   Wed Feb 8 17:48:07 2012 +0000

    ContactInfo: always escape IRC channel names in markup
    
    For some reason, I chose to escape the channel name for the contents of
    the href='' attribute but not in the body of the tag. Thus, channel
    names like "#r&d" made Pango refuse to coÃperate.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=669695

 libempathy-gtk/empathy-contactinfo-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contactinfo-utils.c b/libempathy-gtk/empathy-contactinfo-utils.c
index 695d1ee..b995297 100644
--- a/libempathy-gtk/empathy-contactinfo-utils.c
+++ b/libempathy-gtk/empathy-contactinfo-utils.c
@@ -314,7 +314,7 @@ empathy_contact_info_create_channel_list_label (TpAccount *account,
         g_string_append (label_markup, ", ");
 
       g_string_append_printf (label_markup, "<a href='%s'>%s</a>",
-          escaped, channel_name);
+          escaped, escaped);
       g_free (escaped);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]