snoopdave commented on code in PR #296:
URL: https://github.com/apache/roller/pull/296#discussion_r4592362508


##########
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:
   🐞Claude Issue: **Important:** Only the content is length-checked. The name, 
email and URL go through the same validators, and `roller_comment` stores them 
in `varchar(255)` columns, so a longer value is only refused when the save 
fails. Suggest refusing name, email and URL longer than 255 characters here as 
well, with a test.



-- 
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]

Reply via email to