summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorRaviteja Cherughattu <rc835m@att.com>2020-07-29 14:36:17 -0500
committerRaviteja Cherughattu <rc835m@att.com>2020-07-29 14:36:17 -0500
commitbdb54b7c8a5df0e686490658067c9013ee43dd7a (patch)
treece291e2172a5440d877baedf6214c84823c21c13 /misc
parentde75a11f03d87b53f7a2b5525c8fc66f6053aef2 (diff)
Medium Vulnerabilities CodeFix: Revert [Ref ID: 108330]
Issue-ID: AAF-1115 Change-Id: I8e503ee84eb2771edbf2ed94f5d7f8f2e20812c7 Signed-off-by: Raviteja Cherughattu <rc835m@att.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/pom.xml7
-rw-r--r--misc/xgen/pom.xml7
-rw-r--r--misc/xgen/src/main/java/org/onap/aaf/misc/xgen/Section.java5
3 files changed, 4 insertions, 15 deletions
diff --git a/misc/pom.xml b/misc/pom.xml
index 61d4f5d2..27948dfb 100644
--- a/misc/pom.xml
+++ b/misc/pom.xml
@@ -72,12 +72,7 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.owasp.encoder</groupId>
- <artifactId>encoder</artifactId>
- <version>1.2.1</version>
- </dependency>
+ </dependency>
</dependencies>
diff --git a/misc/xgen/pom.xml b/misc/xgen/pom.xml
index d4183fb9..52533ba0 100644
--- a/misc/xgen/pom.xml
+++ b/misc/xgen/pom.xml
@@ -77,12 +77,7 @@
<groupId>org.onap.aaf.authz</groupId>
<artifactId>aaf-misc-env</artifactId>
<version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.owasp.encoder</groupId>
- <artifactId>encoder</artifactId>
- <version>1.2.1</version>
- </dependency>
+ </dependency>
</dependencies>
<!-- ============================================================== -->
diff --git a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/Section.java b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/Section.java
index 0d41bd9b..fb429b3b 100644
--- a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/Section.java
+++ b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/Section.java
@@ -28,7 +28,6 @@ import org.onap.aaf.misc.env.APIException;
import org.onap.aaf.misc.env.Env;
import org.onap.aaf.misc.env.Trans;
import org.onap.aaf.misc.xgen.html.State;
-import org.owasp.encoder.Encode;
public class Section<G extends XGen<G>> {
protected int indent;
@@ -49,11 +48,11 @@ public class Section<G extends XGen<G>> {
}
public void forward(Writer w) throws IOException {
- w.write(Encode.forJava(forward));
+ w.write(forward);
}
public void back(Writer w) throws IOException {
- w.write(Encode.forJava(backward));
+ w.write(backward);
}
public String toString() {