Bug 149779 - When sending XML via ICQ it got stripped
Summary: When sending XML via ICQ it got stripped
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: ICQ and AIM Plugins (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-11 17:04 UTC by Alexey Boriskin
Modified: 2007-11-11 12:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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