]> git.0d.be Git - empathy.git/commitdiff
ContactInfo: always escape IRC channel names in markup
authorWill Thompson <will.thompson@collabora.co.uk>
Wed, 8 Feb 2012 17:48:07 +0000 (17:48 +0000)
committerWill Thompson <will.thompson@collabora.co.uk>
Fri, 10 Feb 2012 11:14:30 +0000 (11:14 +0000)
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

index 695d1ee3c8a2ccf057ef18aeed422ecbbfc530c4..b995297b0f0e8fa0fa24c436ab4a28e392994f03 100644 (file)
@@ -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);
     }