Fix XSS in examples web application.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 6 Mar 2009 14:46:47 +0000 (14:46 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 6 Mar 2009 14:46:47 +0000 (14:46 +0000)
This is CVE-2009-0781.
Security page updates and formal announcement to follow.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@750921 13f79535-47bb-0310-9956-ffa450edef68

webapps/examples/jsp/cal/cal2.jsp

index 8315b7e..636eaf0 100644 (file)
@@ -35,7 +35,7 @@
 <FORM METHOD=POST ACTION=cal1.jsp>
 <BR> 
 <BR> <INPUT NAME="date" TYPE=HIDDEN VALUE="current">
-<BR> <INPUT NAME="time" TYPE=HIDDEN VALUE=<%= util.HTMLFilter.filter(time) %>
+<BR> <INPUT NAME="time" TYPE=HIDDEN VALUE="<%= util.HTMLFilter.filter(time) %>">
 <BR> <h2> Description of the event <INPUT NAME="description" TYPE=TEXT SIZE=20> </h2>
 <BR> <INPUT TYPE=SUBMIT VALUE="submit">
 </FORM>