From: Christian Dywan Date: Thu, 7 Jan 2010 20:10:14 +0000 (+0100) Subject: Do not run scripts or styles on blank or special pages X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f0141d657892b135d82d707557dfcd7ce574954;p=midori Do not run scripts or styles on blank or special pages --- diff --git a/panels/midori-addons.c b/panels/midori-addons.c index 091e5904..88061950 100644 --- a/panels/midori-addons.c +++ b/panels/midori-addons.c @@ -807,8 +807,12 @@ midori_web_widget_context_ready_cb (GtkWidget* web_widget, gchar* message; uri = katze_object_get_string (web_widget, "uri"); - if (!uri) + /* Don't run scripts or styles on blank or special pages */ + if (!(uri && *uri && strncmp (uri, "about:", 6))) + { + g_free (uri); return; + } elements = addons->elements; while (elements)