You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2025/08/22 06:39:50 UTC

(struts) branch feature/WW-5502-removes-sanitizeNewlines created (now b55312991)

This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a change to branch feature/WW-5502-removes-sanitizeNewlines
in repository https://gitbox.apache.org/repos/asf/struts.git


      at b55312991 WW-5502 Removes deprecated sanitizeNewlines method

This branch includes the following new commits:

     new b55312991 WW-5502 Removes deprecated sanitizeNewlines method

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(struts) 01/01: WW-5502 Removes deprecated sanitizeNewlines method

Posted by lu...@apache.org.
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 <lu...@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()