[FIX] mail: sent messages are plaintext
The problem was that users couldn't write characters like <, > in their messages because the messages are html (e.g. '3 < 5' resulted in '3' because this wasn't html valid so the second part was trimmed). Because of mentions, we can't force messages to be plaintext (mentions are processed and replaced by html links before the message is stored in DB). The solution is to escape them just before processing the mentions. In the case of chat windows, we must be careful because chat windows are also used for the livechat, for which messages are plaintext. So the escaping should be done for chat windows in the backend, but not in the livechat.
Loading
Please register or sign in to comment