Bug 149779

Summary: When sending XML via ICQ it got stripped
Product: [Unmaintained] kopete Reporter: Alexey Boriskin <boug>
Component: ICQ and AIM PluginsAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexey Boriskin 2007-09-11 17:04:48 UTC
Version:           0.12.5 (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages

When i try to send a message via ICQ that contain any XML (Example: <Files>Hello!</Files>), it got stripped. My interlocutor receive just "Hello!" without any "<", ">" or "Files" in a message.
Comment 1 Dennis Nienhüser 2007-10-09 20:18:50 UTC
Please send this:

The last word in this sentence is <b>bold</b>.

I guess it get's interpreted as HTML and the last word is displayed in bold?
Comment 2 Roman Jarosz 2007-11-11 12:51:47 UTC
SVN commit 735323 by rjarosz:

Move sanitizedMessage from AIM/ICQContactBase to AIM/ICQAccount, because messages are converted by oscar server for our protocol.
So ICQAccount always gets plain messages and AIMAccount rtf or plain messages with escaped metacharacters.

Fix bug 149779: When sending XML via ICQ it got stripped.
We have to escape HTML metacharacters in ICQ, because we receive plain text.

BUG: 149779



 M  +88 -1     aim/aimaccount.cpp  
 M  +4 -0      aim/aimaccount.h  
 M  +0 -87     aimcontactbase.cpp  
 M  +0 -3      aimcontactbase.h  
 M  +7 -0      icq/icqaccount.cpp  
 M  +2 -0      icq/icqaccount.h  
 M  +0 -5      icqcontactbase.cpp  
 M  +0 -2      icqcontactbase.h  
 M  +1 -1      oscaraccount.cpp  
 M  +2 -0      oscaraccount.h  
 M  +0 -2      oscarcontact.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=735323