[ https://issues.apache.org/jira/browse/WW-5388?focusedWorklogId=901533&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-901533 ]
ASF GitHub Bot logged work on WW-5388: -------------------------------------- Author: ASF GitHub Bot Created on: 24/Jan/24 20:20 Start Date: 24/Jan/24 20:20 Worklog Time Spent: 10m Work Description: lukaszlenart commented on code in PR #861: URL: https://github.com/apache/struts/pull/861#discussion_r1465493536 ########## core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java: ########## @@ -171,4 +171,8 @@ protected String getCanonicalName(final String originalFileName) { return fileName; } + protected String sanitizeNewlines(String before) { + return before.replaceAll("[\n\r]", "_"); Review Comment: done Issue Time Tracking ------------------- Worklog Id: (was: 901533) Time Spent: 0.5h (was: 20m) > Upgrade Commons Fileupload to FileUpload Jakarta Servlet 6 > ---------------------------------------------------------- > > Key: WW-5388 > URL: https://issues.apache.org/jira/browse/WW-5388 > Project: Struts 2 > Issue Type: Improvement > Components: Core > Reporter: Lukasz Lenart > Assignee: Lukasz Lenart > Priority: Major > Fix For: 7.0.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > There is a new version of JakartaEE FileUpload > {code:xml} > <dependency> > <groupId>org.apache.commons</groupId> > <artifactId>commons-fileupload2-jakarta-servlet6</artifactId> > <version>2.0.0-M2</version> > </dependency> > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)