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

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

                Author: ASF GitHub Bot
            Created on: 16/Feb/25 10:41
            Start Date: 16/Feb/25 10:41
    Worklog Time Spent: 10m 
      Work Description: lukaszlenart commented on code in PR #1218:
URL: https://github.com/apache/struts/pull/1218#discussion_r1957295219


##########
core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java:
##########
@@ -180,43 +157,16 @@ public List<LocalizedMessage> getErrors() {
      * @return the canonical name based on the supplied filename
      */
     protected String getCanonicalName(final String originalFileName) {
-        return FilenameUtils.getName(originalFileName);

Review Comment:
   Good catch, restored





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

    Worklog Id:     (was: 957248)
    Time Spent: 6h 50m  (was: 6h 40m)

> 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
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 6.8.0, 7.1.0
>
>         Attachments: image-2025-01-09-10-11-17-169.png
>
>          Time Spent: 6h 50m
>  Remaining Estimate: 0h
>




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

Reply via email to