413684 - Trailing slash shows JSP source

+ Adding testcase to replicate issue.
This commit is contained in:
Joakim Erdfelt 2013-07-24 16:43:02 -07:00
parent af02334ff7
commit ab7268e516
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public class JspAndDefaultWithAliasesTest
// @formatter:off // @formatter:off
data.add(new String[] { "false","/dump.jsp" }); data.add(new String[] { "false","/dump.jsp" });
data.add(new String[] { "false","/dump.jsp/" });
data.add(new String[] { "true", "/dump.jsp%00" }); data.add(new String[] { "true", "/dump.jsp%00" });
data.add(new String[] { "false","/dump.jsp%00/" }); data.add(new String[] { "false","/dump.jsp%00/" });
data.add(new String[] { "false","/dump.jsp%00x/dump.jsp" }); data.add(new String[] { "false","/dump.jsp%00x/dump.jsp" });

View File

@ -68,6 +68,7 @@ public class JspAndDefaultWithoutAliasesTest
// @formatter:off // @formatter:off
data.add(new Object[] { "/dump.jsp" }); data.add(new Object[] { "/dump.jsp" });
data.add(new Object[] { "/dump.jsp/" });
data.add(new Object[] { "/dump.jsp%00" }); data.add(new Object[] { "/dump.jsp%00" });
data.add(new Object[] { "/dump.jsp%00x" }); data.add(new Object[] { "/dump.jsp%00x" });
data.add(new Object[] { "/dump.jsp%00x/dump.jsp" }); data.add(new Object[] { "/dump.jsp%00x/dump.jsp" });