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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAef4X5GJwWcN+crcAAAAASUVORK5CYII=

Nothing bad, just a smiley face.

In chat, this is what you get:

chat-image

However, you can send a POST request straight to the chat servers.

Instead of putting a client side restriction, could the check be done on the server side as well?
For example, we still get "Message is too long", but in the server side there's still a check.

some-image

15

Actually, we already do validate the length server side, using very similar logic to client side. There is, however, one specific special case that you are hitting here where longer single-line messages are sometimes permitted. I'm not overly concerned about abusing this as an exploit, but I'll tidy it up a little to avoid some of the more obvious problem scenarios.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .