Skip to content

Commit

Permalink
Signed-off-by: liudonghua123 <[email protected]>
Browse files Browse the repository at this point in the history
try to fix jetty#4577
  • Loading branch information
liudonghua123 committed Feb 16, 2020
1 parent 67c513d commit 9853ded
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques
if (endp != null)
{
InetSocketAddress address = endp.getRemoteAddress();
if (address != null && !isAddrUriAllowed(address.getHostString(), baseRequest.getPathInfo()))
if (address != null && !isAddrUriAllowed(address.getHostString(), baseRequest.getContextPath()))
{
response.sendError(HttpStatus.FORBIDDEN_403);
baseRequest.setHandled(true);
Expand Down

0 comments on commit 9853ded

Please sign in to comment.