[Pidgin] #13485: purple_markup_html_to_xhtml

Pidgin trac at pidgin.im
Thu Mar 10 00:27:11 EST 2011


#13485: purple_markup_html_to_xhtml
-------------------+--------------------------------------------------------
Reporter:  loic    |        Type:  defect   
  Status:  new     |   Component:  libpurple
 Version:  2.7.10  |    Keywords:           
-------------------+--------------------------------------------------------
 in libpurple/util.c
 {{{
                                 if(!g_ascii_strncasecmp(c, "<!--",
 strlen("<!--"))) {
                                         char *p = strstr(c +
 strlen("<!--"), "-->");
                                         if(p) {
                                                 if(xhtml)
                                                         xhtml =
 g_string_append(xhtml, "<!--");
                                                 c += strlen("<!--");
                                                 continue;
                                         }
                                 }
 }}}
 is wrong and leads to the following
 {{{
         purple_markup_html_to_xhtml("<!--COMMENT-->", &xhtml, &plaintext);
         assert_string_equal_free("<!--COMMENT-->", xhtml);
         assert_string_equal_free("COMMENT-->", plaintext);
 }}}
 which can be addede to {{{START_TEST(test_markup_html_to_xhtml)}}} in the
 libpurple/tests/test_util.c file.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/13485>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list