Changeset - a1cf70cd89c9
[Not reviewed]
0 1 0
Jan Kaluza - 14 years ago 2011-08-09 13:59:35
hanzz.k@gmail.com
Remove <body>...</body> tags from XHTML messages
1 file changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -738,6 +738,14 @@ static void conv_write_im(PurpleConversation *conv, const char *who, const char
 
	g_free(xhtml_linkified);
 
	g_free(strip);
 

	
 
	// AIM and XMPP adds <body>...</body> here...
 
	if (xhtml_.find("<body>") == 0) {
 
		xhtml_ = xhtml_.substr(6);
 
		if (xhtml_.find("</body>") != std::string::npos) {
 
			xhtml_ = xhtml_.substr(0, xhtml_.find("</body>"));
 
		}
 
	}
 

	
 
	if (xhtml_ == message_) {
 
		xhtml_ = "";
 
	}
0 comments (0 inline, 0 general)