beznogno / pyicqt

Automatically exported from code.google.com/p/pyicqt
GNU General Public License v2.0
0 stars 0 forks source link

transport crashes on ICQ nicknames with backslash at the end #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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("'",
"\\'"))))

Original issue reported on code.google.com by buratino...@gmail.com on 11 Mar 2008 at 1:10

GoogleCodeExporter commented 9 years ago

Original comment by r000ns...@gmail.com on 31 Oct 2008 at 4:14

GoogleCodeExporter commented 9 years ago

Original comment by r000ns...@gmail.com on 8 Nov 2008 at 3:26