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
This commit is contained in:

committed by
Bharath Acharya

parent
fcb97c2bd7
commit
f4ecf2d62f
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user