From 8b9afe55dba0cb3dc7c20d714574e8c85f9fdb11 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Tue, 18 Aug 2009 13:00:57 -0400 Subject: Use empathy_make_absolute_url to fix URLs that have no scheme --- libempathy-gtk/empathy-theme-adium.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index c5fec06e5..b286464d2 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -308,6 +308,8 @@ theme_adium_parse_body (EmpathyThemeAdium *theme, string = g_string_sized_new (strlen (text)); do { + gchar *real_url; + g_match_info_fetch_pos (match_info, 0, &s, &e); if (s > last) { @@ -317,12 +319,15 @@ theme_adium_parse_body (EmpathyThemeAdium *theme, } /* Append the link inside tag */ + real_url = empathy_make_absolute_url (text + s); + g_string_append (string, ""); g_string_append_len (string, text + s, e - s); g_string_append (string, ""); + g_free (real_url); last = e; } while (g_match_info_next (match_info, NULL)); -- cgit v1.2.3