As designed Inconsistant error messages for long content

Xon

Well-known member
Affected version
2.2
If I submit something with ~20100 characters long, the error message is;
Code:
Please enter a message with no more than 20000 characters.

If I try to submit something with ~110,000 characters long , the error message is;
Code:
The submitted message is too long to be processed. Please shorten it.
 
This isn't something we plan to change. This has been in place since 1.x I believe.

The HTML to BB code conversion has a limit based on the maximum message length (I believe it's 5x currently). In order to prevent a potential DoS vector, we don't try to do the conversion if the message is too long and simply abort at this point. This is independent of any limit that may be placed for particular pieces of content so we don't necessarily have a more specific error message to give.
 
Top Bottom