diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-favicon-cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |