diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/ephy-favicon-cache.c | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2005-08-08 Christian Persch <chpe@cvs.gnome.org> + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get): + + Disable favicons from non-http URLs. + +2005-08-08 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/ContentHandler.cpp: Fix build with gecko trunk. diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c index 5e91b6164..7ff754afc 100644 --- a/embed/ephy-favicon-cache.c +++ b/embed/ephy-favicon-cache.c @@ -566,6 +566,8 @@ ephy_favicon_cache_download (EphyFaviconCache *cache, * @cache: * @url: the URL of the icon to retrieve * + * Note: This will always return %NULL for non-http URLs. + * * Return value: the site icon at @url as a #GdkPixbuf, or %NULL if * if could not be retrieved. Unref when you don't need it anymore. */ @@ -584,6 +586,8 @@ ephy_favicon_cache_get (EphyFaviconCache *cache, if (url == NULL) return NULL; + if (!g_str_has_prefix (url, "http://")) return NULL; + priv->requests += 1; now = time (NULL); |