Re: [PR] Validate tz [roller]

snoopdave (via GitHub) <[email protected]> Tue, 06 Feb 2024 03:31:43 -0000
Newsgroups gmane.comp.java.roller.devel
Message-ID <PR_kwDOAAMmdM5l7V1V-a7b710c9-adda-4bd5-8b75-335dbe33df20@gitbox.apache.org>
snoopdave commented on code in PR #134:
URL: https://github.com/apache/roller/pull/134#discussion_r1479181862


##########
app/src/main/java/org/apache/roller/weblogger/pojos/WeblogBookmarkFolder.java:
##########
@@ -188,4 +189,9 @@ public List<WeblogBookmark> retrieveBookmarks() throws WebloggerException {
         return bmgr.getBookmarks(this);
     }
 
+    public void sanitize() {
+        // Conditionally sanitize fields not validated by Struts Validator
+        setName(HTMLSanitizer.conditionallySanitize(getName()));
+    }

Review Comment:
   I think you're right and that is a better approach. I will adjust.



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