Recognize favicons in domains with no trailing slash

This commit is contained in:
Christian Dywan 2008-10-25 16:16:48 +02:00
parent b53a2ebb37
commit cefcb42eef

View file

@ -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,