We had a user paste 1MB worth of data into a comment field, thus preventing the issue from being accessible due to timeouts. We had to bypass our load balancer and hit the server directly to access the comment, and then delete it.
To prevent this from happening ever again, is there a way to restrict the number of characters in a comment?
You could write a plugin that uses something like Limit to limit the number of characters.
Alternatively, you could inject some JavaScript into the Announcements Banner which links to that jQuery plugin. You may need to call it on ajaxComplete to ensure all bases are covered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No problem. I'm glad that this is enough of a hint ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.