This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch feature/WW-5502-removes-sanitizeNewlines in repository https://gitbox.apache.org/repos/asf/struts.git
commit b5531299142feebfa97710ad460954c8a4ac3a96 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Fri Aug 22 08:39:40 2025 +0200 WW-5502 Removes deprecated sanitizeNewlines method --- .../struts2/dispatcher/multipart/AbstractMultiPartRequest.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java b/core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java index 9d2182bd3..3f9733782 100644 --- a/core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java +++ b/core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java @@ -312,13 +312,6 @@ public abstract class AbstractMultiPartRequest implements MultiPartRequest { return FilenameUtils.getName(originalFileName); } - /** - * @deprecated since 7.0.1, use {@link StringUtils#normalizeSpace(String)} instead - */ - @Deprecated - protected String sanitizeNewlines(String before) { - return before.replaceAll("\\R", "_"); - } /* (non-Javadoc) * @see org.apache.struts2.dispatcher.multipart.MultiPartRequest#getErrors()