kusalk commented on code in PR #1156:
URL: https://github.com/apache/struts/pull/1156#discussion_r1895664400


##########
core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java:
##########
@@ -169,4 +176,12 @@ protected String getCanonicalName(final String 
originalFileName) {
         return fileName;
     }
 
+    protected boolean isAccepted(String fileName) {
+        return patternsChecker.isAllowed(fileName).isAllowed();
+    }
+
+    protected String sanitizeNewlines(String before) {

Review Comment:
   Nit: So I introduced this function in #760 but I realise now we can just use 
`org.apache.commons.lang3.StringUtils#normalizeSpace` instead



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