| 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 |
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("'",
"\\'"))))
Nov 8, 2008
(No comment was entered for this change.)
Status:
Fixed
|
Owner: r000nster
Labels: Milestone-0.8.1b3