Active
Project:
Chat
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2007 at 17:41 UTC
Updated:
1 Mar 2007 at 17:41 UTC
When a username contains a hyphen (an allowed character in usernames) the javascript used splits the returned buddylist string on "-". This creates an array which is used to determine user online status and their userid.
When the username contains a hyphen the array is longer than expected and the userid and online status are not in the expected position.
Attached is my solution to the problem. I basically looped through the array parts and searched for the userid and the corresponding online status next to it. Once I found that I re-joined the previous username on "-" and displayed everything as expected.
| Comment | File | Size | Author |
|---|---|---|---|
| bugfix.txt | 1.07 KB | Chambrln |