From c1ecaa1fc326fd51ae3adc11c814b80cb1929dac Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 8 Aug 2005 20:18:52 +0000 Subject: Disable favicons from non-http URLs. 2005-08-08 Christian Persch * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get): Disable favicons from non-http URLs. --- embed/ephy-favicon-cache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'embed/ephy-favicon-cache.c') 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); -- cgit v1.2.3