Ignore rules with subdocument property

This commit is contained in:
Alexander Butenko 2011-06-22 22:27:39 -04:00 committed by Christian Dywan
parent f093e55f85
commit bd10649982

View file

@ -1191,6 +1191,14 @@ adblock_add_url_pattern (gchar* prefix,
opts = g_strdup_printf ("t=%s,r=%s", type, patt); 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); format_patt = adblock_fixup_regexp (prefix, patt);
adblock_debug ("got: %s opts %s", format_patt, opts); adblock_debug ("got: %s opts %s", format_patt, opts);