From: Alexander Butenko Date: Thu, 23 Jun 2011 02:27:39 +0000 (-0400) Subject: Ignore rules with subdocument property X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd106499828d0e061536654e3b0e2dacc7937414;p=midori Ignore rules with subdocument property --- diff --git a/extensions/adblock.c b/extensions/adblock.c index 72ef3001..eeebb162 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -1191,6 +1191,14 @@ adblock_add_url_pattern (gchar* prefix, opts = g_strdup_printf ("t=%s,r=%s", type, patt); } + if (g_regex_match_simple ("subdocument", opts, + G_REGEX_CASELESS, G_REGEX_MATCH_NOTEMPTY)) + { + g_free (patt); + g_free (opts); + return NULL; + } + format_patt = adblock_fixup_regexp (prefix, patt); adblock_debug ("got: %s opts %s", format_patt, opts);