Needs review
Project:
Instant messenger
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2009 at 23:27 UTC
Updated:
27 Aug 2010 at 16:02 UTC
I just wanted to report one small bug that I recently noticed: If you try to type an "&" in a chat message, the "&" and all of the text after it won't display.
This issue surfaced in our chatroom because we use the phrase "Q&A" quite a bit. (Our chatroom sessions are actually called "Q&A Sessions" on our site.) Every time we typed Q&A, the displayed message ended on the Q.
Most likely, the & symbol needs to be escaped somewhere in the code.
Cheers,
Ben
Comments
Comment #1
mrgavindb commentedI have this same problem. The whole message shows up for the user that typed it, but not the other user. Other special characters work though.
Comment #2
mauriziopinotti commentedthis patch solves the problem:
anyway, just replace "encodeURI" with "encodeURIComponent" in im.js, this will escape ALL chars (encodeURI skips , / ? : @ & = + $ #).