GNOME Bugzilla – Bug 616339
Problem with & symbol from status messages links in tooltips.
Last modified: 2010-11-02 09:08:51 UTC
Created attachment 159197 [details] image A simple problem. When someone have status like link with & character and you mouse over on his contact and Empathy shows you tooltip you see that bug. Telepathy debugger shows me: Failed to set text from markup due to error parsing markup: Błąd w wierszu 1: Jednostka nie jest zakończona średnikiem; najprawdopodobniej został użyty znak &, który nie miał oznaczać jednostki - należy go zapisać jako & it means that I should replace & as & :>
Created attachment 171266 [details] [review] proposed fix We need to escape URL itself along with the Title.
Ping
I don't think that's a good idea to escape the URL itself, will it still be working in all cases (I mean, if I click on it, the correct URL opens)? For the record, the Russian(?) error message in bug report is this one in English: Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as & This looks like a GtkLabel error to me, the href part of a <a> tag should not be forced to respect markups, since it's not displayed...
Hm, asking gtk devs, it seems you are right, escaping the href part is safe. Could you please verify that when clicking such link, the & is correctly un-escaped and opens correctly in the browser, though.
>Could you please verify that when clicking such link, the & is correctly un-escaped and opens correctly in the browser, though. Checked, & is unescaped properly.
Ok then, you can merge :) Thanks for your contribution!
Merged; thanks! This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.