Skip to content

Commit 8bb1448

Browse files
committed
Removed Apache Commons sample code
Signed-off-by: Dominik Schadow <dominikschadow@googlemail.com>
1 parent 8523590 commit 8bb1448

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

Ch04_OutputEscaping/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ Open the web application in your browser at http://localhost:8080/OutputEscaping
2121
<artifactId>esapi</artifactId>
2222
<version>2.0.1</version>
2323
</dependency>
24-
<dependency>
25-
<groupId>org.apache.commons</groupId>
26-
<artifactId>commons-lang3</artifactId>
27-
<version>3.1</version>
28-
</dependency>
2924
</dependencies>
3025

3126
<build>

Ch04_OutputEscaping/src/main/webapp/index.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</table>
2121
</form>
2222

23-
<h2>With Output-Escaping (ESAPI and Apache Commons)</h2>
23+
<h2>With Output-Escaping (ESAPI)</h2>
2424

2525
<form name="withOutputEscaping" method="post" action="withOutputEscaping.jsp">
2626
<table>

Ch04_OutputEscaping/src/main/webapp/withOutputEscaping.jsp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,5 @@
99
<h1>ESAPI</h1>
1010
<%@ page import="org.owasp.esapi.ESAPI" %>
1111
<strong>Hello</strong> <%= ESAPI.encoder().encodeForHTML(request.getParameter("name")) %>
12-
13-
<h1>Apache Commons</h1>
14-
<%@ page import="org.apache.commons.lang3.StringEscapeUtils" %>
15-
<strong>Hello</strong> <%= StringEscapeUtils.escapeHtml4(request.getParameter("name")) %>
1612
</body>
1713
</html>

0 commit comments

Comments
 (0)