[
https://issues.apache.org/jira/browse/WW-5501?focusedWorklogId=949784&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-949784
]
ASF GitHub Bot logged work on WW-5501:
--------------------------------------
Author: ASF GitHub Bot
Created on: 23/Dec/24 13:18
Start Date: 23/Dec/24 13:18
Worklog Time Spent: 10m
Work Description: kusalk commented on code in PR #1156:
URL: https://github.com/apache/struts/pull/1156#discussion_r1895745870
##########
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:
Yep that works too
Issue Time Tracking
-------------------
Worklog Id: (was: 949784)
Time Spent: 1h 40m (was: 1.5h)
> 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 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)