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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.