mraible commented on code in PR #296:
URL: https://github.com/apache/roller/pull/296#discussion_r4592632871
##########
app/src/main/java/org/apache/roller/weblogger/ui/rendering/servlets/CommentServlet.java:
##########
@@ -257,7 +263,8 @@ public void doPost(HttpServletRequest request,
HttpServletResponse response)
WeblogEntryCommentForm cf = new WeblogEntryCommentForm();
cf.setData(comment);
- if (preview) {
+ boolean tooLong = isTooLong(comment.getContent(), maxContentLength);
Review Comment:
Done in 1d0c138b4. Name, email and URL longer than 255 characters are now
refused before preview and validation, with their own message
(`error.commentPostFailedFieldTooLong`). The URL is checked after
normalization, since that's the value stored. `CommentServletTest` covers each
field at 255 and 256 characters, and CHANGES mentions the limit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]