My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 135: transport crashes on ICQ nicknames with backslash at the end
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  r000ns...@gmail.com
Closed:  Nov 2008


 
Reported by buratino...@gmail.com, Mar 11, 2008
What steps will reproduce the problem?
1.
Just have somebody in the server-side list with backslash as the last
symbol of ICQ nickname. Buddy\ for example.

pyicq-t-0.8b


the fix is almost trivial:

10a11
> import re
191c192
<                       c.execute("INSERT INTO
list_attributes(owner,type,jid,attribute,value) VALUES('%s','%s','%s','%s
','%s')" % (jabberID, type, legacyID, p, payload[p].replace("'", "\\'")))
---
>                       c.execute("INSERT INTO
list_attributes(owner,type,jid,attribute,value) VALUES('%s','%s','%s','%s
','%s')" % (jabberID, type, legacyID, p, re.escape(payload[p].replace("'",
"\\'"))))
 
Oct 31, 2008
Project Member #1 r000ns...@gmail.com
(No comment was entered for this change.)
Status: Accepted
Owner: r000nster
Labels: Milestone-0.8.1b3
Nov 8, 2008
Project Member #2 r000ns...@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting