pidgin: 16b1eeda: purple_status_to_jabber does need to str...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Wed Jul 15 22:25:39 EDT 2009


-----------------------------------------------------------------
Revision: 16b1eeda9a01e74e4b8906f46cd976bf0935a1c2
Ancestor: 2c6c8b3766205a61d7f3b2b0cc8d611043422e3f
Author: darkrain42 at pidgin.im
Date: 2009-07-16T02:14:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/16b1eeda9a01e74e4b8906f46cd976bf0935a1c2

Modified files:
        libpurple/protocols/jabber/presence.c

ChangeLog: 

purple_status_to_jabber does need to strip HTML.

The text we send out on the wire needs to be stripped (and <br> turned
into \n), although I think this doesn't undo any of QuLogic's fixings.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c	d0f0f51a8925e190c09edc7f74e92da0ba75f862
+++ libpurple/protocols/jabber/presence.c	bbc89f0635d31b781ed5447c010445a819e9969e
@@ -1065,7 +1065,7 @@ void purple_status_to_jabber(const Purpl
 
 			/* if the message is blank, then there really isn't a message */
 			if(formatted_msg && *formatted_msg)
-				*msg = g_strdup(formatted_msg);
+				*msg = purple_markup_strip_html(formatted_msg);
 		}
 
 		if(priority)


More information about the Commits mailing list