[Pidgin] #11257: XML-invalid Unicode characters kills group chats

Pidgin trac at pidgin.im
Thu Apr 29 13:17:36 EDT 2010


#11257: XML-invalid Unicode characters kills group chats
--------------------+-------------------------------------------------------
 Reporter:  cortex  |        Owner:  deryni
     Type:  defect  |       Status:  new   
Milestone:          |    Component:  XMPP  
  Version:  2.6.5   |   Resolution:        
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by darkrain42):

 Heh, `g_utf8_validate` apparently already handles the other invalid
 characters (the surrogate pairs and noncharacters aren't valid in UTF-8).
 I've added support for them to purple_utf8_strip_unprintables anyway
 ("Just in case")

 With regard to whether or not libpurple can "accept" "characters-of-
 death", that's up to our XML parser and the XMPP spec (the former of which
 barfs on the characters, and the latter of which says that an entity (i.e.
 Pidgin) "MUST NOT accept data that is not XML-well-formed").

-- 
Ticket URL: <http://developer.pidgin.im/ticket/11257#comment:5>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list