lukaszlenart commented on code in PR #1156:
URL: https://github.com/apache/struts/pull/1156#discussion_r1895733422
##########
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:
We can always mark this function as deprecated and use
`StringUtils.normalizeSpace()` directly
--
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]