diff --git a/UnicodeJsps/src/main/webapp/bidic.jsp b/UnicodeJsps/src/main/webapp/bidic.jsp
index b7d3b6e77..0b5b43651 100644
--- a/UnicodeJsps/src/main/webapp/bidic.jsp
+++ b/UnicodeJsps/src/main/webapp/bidic.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.owasp.encoder.Encode" %>
@@ -258,7 +259,7 @@ function setUbaInput(str) {
-
+
|
diff --git a/UnicodeJsps/src/main/webapp/bnf.jsp b/UnicodeJsps/src/main/webapp/bnf.jsp
index e2ae2215d..2f133db04 100644
--- a/UnicodeJsps/src/main/webapp/bnf.jsp
+++ b/UnicodeJsps/src/main/webapp/bnf.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.owasp.encoder.Encode" %>
<%@ include file="header.jsp" %>
@@ -50,23 +51,23 @@
Input |
- |
+ |
TestText |
- |
+ |
Modified BNF Pattern
- <%=fixedbnf%>
+ <%=Encode.forHtmlContent(fixedbnf)%>
Underlined Find Values
- <%=testPattern%>
+ <%=Encode.forHtmlContent(testPattern)%>
Random Generation
<%=random%>
diff --git a/UnicodeJsps/src/main/webapp/breaks.jsp b/UnicodeJsps/src/main/webapp/breaks.jsp
index 8b76191a0..85b6476f3 100644
--- a/UnicodeJsps/src/main/webapp/breaks.jsp
+++ b/UnicodeJsps/src/main/webapp/breaks.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.owasp.encoder.Encode" %>
@@ -38,7 +39,7 @@ span.break { border-right: 1px solid red;}
- |
+ |
<%=UnicodeJsp.showBreaks(text, choice)%> |
diff --git a/UnicodeJsps/src/main/webapp/idna.jsp b/UnicodeJsps/src/main/webapp/idna.jsp
index e3c9087fe..cbec9d295 100644
--- a/UnicodeJsps/src/main/webapp/idna.jsp
+++ b/UnicodeJsps/src/main/webapp/idna.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.owasp.encoder.Encode" %>
<%@ include file="header.jsp" %>
@@ -29,7 +30,7 @@
For special characters, you can use Picker |
- |
+ |
diff --git a/UnicodeJsps/src/main/webapp/languageid.jsp b/UnicodeJsps/src/main/webapp/languageid.jsp
index 743167212..8f9d5aad6 100644
--- a/UnicodeJsps/src/main/webapp/languageid.jsp
+++ b/UnicodeJsps/src/main/webapp/languageid.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.owasp.encoder.Encode" %>
<%@ include file="header.jsp" %>
@@ -45,7 +46,7 @@
Input |
- |
+ |
diff --git a/UnicodeJsps/src/main/webapp/list-unicodeset.jsp b/UnicodeJsps/src/main/webapp/list-unicodeset.jsp
index d54840033..4c031c878 100644
--- a/UnicodeJsps/src/main/webapp/list-unicodeset.jsp
+++ b/UnicodeJsps/src/main/webapp/list-unicodeset.jsp
@@ -1,5 +1,6 @@
+<%@ page import="org.owasp.encoder.Encode" %>
<%@ include file="header.jsp" %>
Unicode Utilities: UnicodeSet
@@ -36,7 +37,7 @@
Input |
- |
+ |
@@ -46,9 +47,9 @@
name="ucd">
name="esc">
- name="g" size="25" value="<%=group%>">
+ name="g" size="25" value="<%=Encode.forHtmlAttribute(group)%>">
- name="i" size="25" value="<%=info%>">
+ name="i" size="25" value="<%=Encode.forHtmlAttribute(info)%>">
|
diff --git a/UnicodeJsps/src/main/webapp/regex.jsp b/UnicodeJsps/src/main/webapp/regex.jsp
index 54ce4549d..4662be132 100644
--- a/UnicodeJsps/src/main/webapp/regex.jsp
+++ b/UnicodeJsps/src/main/webapp/regex.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.owasp.encoder.Encode" %>
<%@ include file="header.jsp" %>
@@ -41,20 +42,20 @@
Input |
- |
+ |
TestText |
- |
+ |
Modified Regex Pattern
- <%=fixedRegex%>
+ <%=Encode.forHtmlContent(fixedRegex)%>
Underlined Find Values
<%=testPattern%>
diff --git a/UnicodeJsps/src/main/webapp/transform.jsp b/UnicodeJsps/src/main/webapp/transform.jsp
index c39d9e0c5..a5aa33439 100644
--- a/UnicodeJsps/src/main/webapp/transform.jsp
+++ b/UnicodeJsps/src/main/webapp/transform.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.owasp.encoder.Encode" %>
<%@ include file="header.jsp" %>
@@ -24,13 +25,13 @@
Transform Rules |
- |
+ |
Sample |
- |
+ |