diff --git a/test/pom.xml b/test/pom.xml
index 715038c..bbe3784 100644
--- a/test/pom.xml
+++ b/test/pom.xml
@@ -91,7 +91,11 @@
commons-io
2.4
-
+
+ org.apache.commons
+ commons-text
+ 1.9
+
org.apache.sling
diff --git a/test/src/main/java/com/veracode/verademo/controller/UserController.java b/test/src/main/java/com/veracode/verademo/controller/UserController.java
index 50222d2..99daf67 100644
--- a/test/src/main/java/com/veracode/verademo/controller/UserController.java
+++ b/test/src/main/java/com/veracode/verademo/controller/UserController.java
@@ -11,6 +11,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
+import org.apache.commons.text.StringEscapeUtils;
/**
* @author johnadmin
@@ -42,9 +43,9 @@ public String showLogin(
if (target == null) {
target = "";
}
- //..
+ //...
- logger.info("Entering showLogin with username " + username + " and target " + target);
+ logger.info("Entering showLogin with username " + StringEscapeUtils.escapeJava(username) + " and target " + target);
model.addAttribute("username", username);
model.addAttribute("target", target);