aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-favicon-cache.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-09 04:18:52 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-09 04:18:52 +0800
commitc1ecaa1fc326fd51ae3adc11c814b80cb1929dac (patch)
tree8ebc1fd27810d1982b8d234440e42d14bc644f35 /embed/ephy-favicon-cache.c
parente6a65902d735e3e7b2355aa9a2107446eebaf9ea (diff)
downloadgsoc2013-epiphany-c1ecaa1fc326fd51ae3adc11c814b80cb1929dac.tar
gsoc2013-epiphany-c1ecaa1fc326fd51ae3adc11c814b80cb1929dac.tar.gz
gsoc2013-epiphany-c1ecaa1fc326fd51ae3adc11c814b80cb1929dac.tar.bz2
gsoc2013-epiphany-c1ecaa1fc326fd51ae3adc11c814b80cb1929dac.tar.lz
gsoc2013-epiphany-c1ecaa1fc326fd51ae3adc11c814b80cb1929dac.tar.xz
gsoc2013-epiphany-c1ecaa1fc326fd51ae3adc11c814b80cb1929dac.tar.zst
gsoc2013-epiphany-c1ecaa1fc326fd51ae3adc11c814b80cb1929dac.zip
Disable favicons from non-http URLs.
2005-08-08 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get): Disable favicons from non-http URLs.
Diffstat (limited to 'embed/ephy-favicon-cache.c')
-rw-r--r--embed/ephy-favicon-cache.c4
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);