From: Paweł Forysiuk Date: Tue, 6 Sep 2011 20:44:13 +0000 (+0200) Subject: Properly omit user script / styles on special pages X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602d0e13667de8828abbc075d7e1365ac7985356;p=midori Properly omit user script / styles on special pages --- diff --git a/extensions/addons.c b/extensions/addons.c index b7733c65..2916ea82 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -1460,7 +1460,7 @@ addons_context_ready_cb (WebKitWebView* web_view, uri = katze_object_get_string (web_view, "uri"); /* Don't run scripts or styles on blank or special pages */ - if (!(uri && *uri && strncmp (uri, "about:", 6))) + if (!(uri && *uri) || !strncmp (uri, "about:", 6)) { g_free (uri); return;