Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: mauriziopinotti commentedthis patch solves the problem:
anyway, just replace "encodeURI" with "encodeURIComponent" in im.js, this will escape ALL chars (encodeURI skips , / ? : @ & = + $ #).