Skip to content

Commit e0e0751

Browse files
author
patched.codes[bot]
committed
Patched src/com/ibm/security/appscan/altoromutual/servlet/SurveyServlet.java
1 parent c01a1e2 commit e0e0751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/ibm/security/appscan/altoromutual/servlet/SurveyServlet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ else if (step.equals("done")){
9595
content = "<h1>Request Out of Order</h1>"+
9696
"<div width=\"99%\"><p>It appears that you attempted to skip or repeat some areas of this survey. Please <a href=\"survey_questions.jsp\">return to the start page</a> to begin again.</p></div>";
9797
} else {
98-
request.getSession().setAttribute("surveyStep", step);
98+
request.getSession().setAttribute("surveyStep", sanitizeInput(step));
9999
}
100100
response.setContentType("text/html");
101-
response.getWriter().write(content);
101+
response.getWriter().write(URLEncoder.encode(content, "UTF-8").replace("%0A", "").replace("%0D", ""));
102102
response.getWriter().flush();
103103

104104
}

0 commit comments

Comments
 (0)