From bd106499828d0e061536654e3b0e2dacc7937414 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Wed, 22 Jun 2011 22:27:39 -0400 Subject: [PATCH] Ignore rules with subdocument property --- extensions/adblock.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- 2.39.5