Mercurial > pidgin
comparison libpurple/util.c @ 27589:b7ce89597a89
ALLOW_TAG expands to multiple statements, so we should put braces around
this if(). Otherwise, I think we'd accept <html/> in the middle of the
markup.
References #7340.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 19 Jul 2009 08:09:24 +0000 |
parents | 1d30e9d6de9b |
children | c800bdb5ebbc |
comparison
equal
deleted
inserted
replaced
27588:989f1bd200b7 | 27589:b7ce89597a89 |
---|---|
1570 ALLOW_TAG("h3"); | 1570 ALLOW_TAG("h3"); |
1571 ALLOW_TAG("h4"); | 1571 ALLOW_TAG("h4"); |
1572 ALLOW_TAG("h5"); | 1572 ALLOW_TAG("h5"); |
1573 ALLOW_TAG("h6"); | 1573 ALLOW_TAG("h6"); |
1574 /* we only allow html to start the message */ | 1574 /* we only allow html to start the message */ |
1575 if(c == html) | 1575 if(c == html) { |
1576 ALLOW_TAG("html"); | 1576 ALLOW_TAG("html"); |
1577 } | |
1577 ALLOW_TAG_ALT("i", "em"); | 1578 ALLOW_TAG_ALT("i", "em"); |
1578 ALLOW_TAG_ALT("italic", "em"); | 1579 ALLOW_TAG_ALT("italic", "em"); |
1579 ALLOW_TAG("li"); | 1580 ALLOW_TAG("li"); |
1580 ALLOW_TAG("ol"); | 1581 ALLOW_TAG("ol"); |
1581 ALLOW_TAG("p"); | 1582 ALLOW_TAG("p"); |