[ https://issues.apache.org/jira/browse/WW-5501?focusedWorklogId=949768&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-949768 ]
ASF GitHub Bot logged work on WW-5501: -------------------------------------- Author: ASF GitHub Bot Created on: 23/Dec/24 11:51 Start Date: 23/Dec/24 11:51 Worklog Time Spent: 10m Work Description: 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 Issue Time Tracking ------------------- Worklog Id: (was: 949768) Time Spent: 1h 10m (was: 1h) > Exclude malicious names > ----------------------- > > Key: WW-5501 > URL: https://issues.apache.org/jira/browse/WW-5501 > Project: Struts 2 > Issue Type: Improvement > Components: Core > Reporter: Lukasz Lenart > Priority: Major > Fix For: 6.7.1, 7.1.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)