Recognize favicons in domains with no trailing slash
This commit is contained in:
parent
b53a2ebb37
commit
cefcb42eef
1 changed files with 21 additions and 18 deletions
|
@ -489,6 +489,10 @@ katze_net_load_icon (KatzeNet* net,
|
|||
icon_uri = g_strdup (uri);
|
||||
icon_uri[i] = '\0';
|
||||
icon_uri = g_strdup_printf ("%s/favicon.ico", icon_uri);
|
||||
}
|
||||
else
|
||||
icon_uri = g_strdup_printf ("%s/favicon.ico", uri);
|
||||
|
||||
icon_file = katze_net_get_cached_path (net, icon_uri, "icons");
|
||||
|
||||
if (g_file_test (icon_file, G_FILE_TEST_EXISTS))
|
||||
|
@ -508,7 +512,6 @@ katze_net_load_icon (KatzeNet* net,
|
|||
}
|
||||
g_free (icon_uri);
|
||||
}
|
||||
}
|
||||
|
||||
if (!pixbuf)
|
||||
pixbuf = gtk_widget_render_icon (widget,
|
||||
|
|
Loading…
Reference in a new issue