make 'ignore css tags' case-insensitive
[claws.git] / src / html.c
index 9124c1be0ec90ef292937071757c9c9a67a009bf..a74f24d808ea3c0763d84d1c0c2a594f775872f8 100644 (file)
@@ -652,9 +652,9 @@ static void html_get_parenthesis(HTMLParser *parser, gchar *buf, gint len)
                return;
        }
        /* ignore css stuff */
-       if (!strncmp(parser->bufp, "<STYLE type=text/css>", 21)) {
+       if (!g_strncasecmp(parser->bufp, "<STYLE type=text/css>", 21)) {
                parser->bufp += 21;
-               while ((p = strstr(parser->bufp, "</STYLE>")) == NULL)
+               while ((p = strcasestr(parser->bufp, "</STYLE>")) == NULL)
                        if (html_read_line(parser) == HTML_EOF) return;
                parser->bufp = p + 8;
                return;