[ 
https://issues.apache.org/jira/browse/WW-5501?focusedWorklogId=949780&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-949780
 ]

ASF GitHub Bot logged work on WW-5501:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Dec/24 13:04
            Start Date: 23/Dec/24 13:04
    Worklog Time Spent: 10m 
      Work Description: 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





Issue Time Tracking
-------------------

    Worklog Id:     (was: 949780)
    Time Spent: 1.5h  (was: 1h 20m)

> 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: 1.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to