aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/ephy-favicon-cache.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6d1037108..34687cd68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);