From f4ecf2d62fd8766fa0b0c7d6483d9a583459267c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 4 May 2009 10:48:31 +0530 Subject: Assure that the filename <-> uri conversion are done with g_filename_{to,from}_uri and not by concatenating strings which is broken with win32-style uris --- mail/em-format-html-display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/em-format-html-display.c') diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 1fa58096ce..f20af59683 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -788,7 +788,7 @@ efhd_get_uri_puri (GtkWidget *html, GdkEventButton *event, EMFormatHTMLDisplay * if (img_url) { if (!(strstr (img_url, "://") || g_ascii_strncasecmp (img_url, "cid:", 4) == 0)) { - char *u = g_strconcat ("file://", img_url, NULL); + char *u = g_filename_to_uri (img_url, NULL, NULL); g_free (img_url); img_url = u; } -- cgit v1.2.3