From ecef56b546b1a7ae3a8411b3e2af2b64fc72799e Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Tue, 4 Jan 2022 09:01:21 +0100 Subject: [PATCH] WW-5022 Sets escapeHtmlBody to false by default and defines new flag to switch to true globally --- core/pom.xml | 2 +- .../org/apache/struts2/StrutsConstants.java | 14 +- .../org/apache/struts2/components/Anchor.java | 18 +-- .../apache/struts2/components/Component.java | 22 +-- .../org/apache/struts2/components/Submit.java | 18 +-- .../struts2/views/jsp/ui/AnchorTag.java | 18 +-- .../struts2/views/jsp/ui/SubmitTag.java | 8 +- .../struts2/components/ComponentTest.java | 133 +++++++----------- .../struts2/views/jsp/ui/AnchorTest.java | 48 ++++--- .../struts2/views/jsp/ui/CheckboxTest.java | 4 +- .../apache/struts2/views/jsp/ui/FileTest.java | 4 +- .../struts2/views/jsp/ui/SubmitTest.java | 9 +- .../struts2/views/jsp/ui/TextareaTest.java | 4 +- .../src/test/resources/struts-escape-body.xml | 31 ++++ 14 files changed, 168 insertions(+), 165 deletions(-) create mode 100644 core/src/test/resources/struts-escape-body.xml diff --git a/core/pom.xml b/core/pom.xml index 980714243..cd5677742 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -342,7 +342,7 @@ org.slf4j slf4j-simple - true + test + + + + + + + +