From a7426fe259321816619df43a15f6af7de71b8f51 Mon Sep 17 00:00:00 2001 From: Patrykb0802 Date: Thu, 26 Sep 2024 15:05:47 +0200 Subject: [PATCH] #2992 Prevent XSS for body request --- .../validation/xss}/OwaspXssValidatorExceptionTest.java | 4 +--- .../validation/xss}/OwaspXssValidatorTest.java | 4 +--- .../validation/xss}/OwaspXssValidatorTestsSuite.java | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) rename test/org/scada_lts/web/{security => beans/validation/xss}/OwaspXssValidatorExceptionTest.java (95%) rename test/org/scada_lts/web/{security => beans/validation/xss}/OwaspXssValidatorTest.java (89%) rename test/org/scada_lts/web/{security => beans/validation/xss}/OwaspXssValidatorTestsSuite.java (83%) diff --git a/test/org/scada_lts/web/security/OwaspXssValidatorExceptionTest.java b/test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorExceptionTest.java similarity index 95% rename from test/org/scada_lts/web/security/OwaspXssValidatorExceptionTest.java rename to test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorExceptionTest.java index 27691bc54..5439b9978 100644 --- a/test/org/scada_lts/web/security/OwaspXssValidatorExceptionTest.java +++ b/test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorExceptionTest.java @@ -1,10 +1,8 @@ -package org.scada_lts.web.security; +package org.scada_lts.web.beans.validation.xss; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; -import org.scada_lts.web.beans.validation.xss.OwaspXssValidator; -import org.scada_lts.web.beans.validation.xss.XssValidatorException; import java.util.Arrays; import java.util.Collection; diff --git a/test/org/scada_lts/web/security/OwaspXssValidatorTest.java b/test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorTest.java similarity index 89% rename from test/org/scada_lts/web/security/OwaspXssValidatorTest.java rename to test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorTest.java index cc49fdaf3..d90db4f81 100644 --- a/test/org/scada_lts/web/security/OwaspXssValidatorTest.java +++ b/test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorTest.java @@ -1,10 +1,8 @@ -package org.scada_lts.web.security; +package org.scada_lts.web.beans.validation.xss; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; -import org.scada_lts.web.beans.validation.xss.OwaspXssValidator; -import org.scada_lts.web.beans.validation.xss.XssValidatorException; import java.util.Arrays; import java.util.Collection; diff --git a/test/org/scada_lts/web/security/OwaspXssValidatorTestsSuite.java b/test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorTestsSuite.java similarity index 83% rename from test/org/scada_lts/web/security/OwaspXssValidatorTestsSuite.java rename to test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorTestsSuite.java index ae286f48b..8cebbf4e8 100644 --- a/test/org/scada_lts/web/security/OwaspXssValidatorTestsSuite.java +++ b/test/org/scada_lts/web/beans/validation/xss/OwaspXssValidatorTestsSuite.java @@ -1,4 +1,4 @@ -package org.scada_lts.web.security; +package org.scada_lts.web.beans.validation.xss; import org.junit.runner.RunWith; import org.junit.runners.Suite;