From: Alexander Butenko Date: Wed, 30 Jun 2010 15:48:37 +0000 (-0400) Subject: Skip '+' sign in adblock rules X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d972f11e45ea24dfc13501eb0e57f046f94f71f;p=midori Skip '+' sign in adblock rules --- diff --git a/extensions/adblock.c b/extensions/adblock.c index 4623d595..372d13ad 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -1059,6 +1059,8 @@ adblock_fixup_regexp (gchar* src) case '^': g_string_append (str, ""); break; + case '+': + break; default: g_string_append_printf (str,"%c", *src); break; @@ -1407,6 +1409,7 @@ test_adblock_parse (void) g_assert (!adblock_parse_line ("##")); g_assert (!adblock_parse_line ("[")); + g_assert_cmpstr (adblock_parse_line ("+advert/"), ==, "advert/"); g_assert_cmpstr (adblock_parse_line ("*foo"), ==, "foo"); g_assert_cmpstr (adblock_parse_line ("f*oo"), ==, "f.*oo"); g_assert_cmpstr (adblock_parse_line ("?foo"), ==, "\\?foo");