Mercurial > pidgin-twitter
changeset 218:27651b73a638
fix for a bug that post to wassr's channel which contains entity reference got through parrot blocker.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 28 Aug 2008 22:02:45 +0900 |
parents | 55908ee1467f |
children | 739ed7a4426c |
files | pidgin-twitter.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin-twitter.c Thu Aug 28 10:24:52 2008 +0900 +++ b/pidgin-twitter.c Thu Aug 28 22:02:45 2008 +0900 @@ -1632,6 +1632,7 @@ #endif if(service == wassr_service) { + gchar *stripped = strip_html_markup(*buffer); /* suppress annoying completion message from wassr */ if(strstr(*buffer, "<body>投稿完了:") || strstr(*buffer, "<body>チャンネル投稿完了:")) { @@ -1642,11 +1643,12 @@ /* discard parrot message */ else if(wassr_post && strlen(wassr_post) && - strstr(*buffer, wassr_post)) { + strstr(stripped, wassr_post)) { twitter_debug("parrot clearing: buf = %s post = %s\n", *buffer, wassr_post); g_free(*sender); *sender = NULL; g_free(*buffer); *buffer = NULL; } + g_free(stripped); } if(service == identica_service) {