Removed hardcoded webgoat path for URLs
git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@367 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
@ -123,8 +123,8 @@ public class Interceptor implements Filter
|
||||
|
||||
String url = req.getRequestURL().toString();
|
||||
|
||||
RequestDispatcher disp = req.getRequestDispatcher(url.substring(url.lastIndexOf("WebGoat/")
|
||||
+ "WebGoat".length()));
|
||||
RequestDispatcher disp = req.getRequestDispatcher(url.substring(url.lastIndexOf(req.getContextPath() + "/")
|
||||
+ req.getContextPath().length()));
|
||||
|
||||
disp.forward(request, response);
|
||||
|
||||
|
Reference in New Issue
Block a user