From 602d0e13667de8828abbc075d7e1365ac7985356 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Tue, 6 Sep 2011 22:44:13 +0200 Subject: [PATCH] Properly omit user script / styles on special pages --- extensions/addons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5