Skip to content

Commit

Permalink
Merge pull request #4627 from eclipse/jetty-10.0.x-4577-InetAccessHan…
Browse files Browse the repository at this point in the history
…dler_getPathInfo

Issue #4577 - request getPathInfo() could be null in InetAccessHandler
  • Loading branch information
lachlan-roberts authored Mar 10, 2020
2 parents 9c3cfb9 + 2897377 commit d938fca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques
protected boolean isAllowed(InetAddress addr, Request baseRequest, HttpServletRequest request)
{
String connectorName = baseRequest.getHttpChannel().getConnector().getName();
return _set.test(new AccessTuple(connectorName, addr, baseRequest.getPathInfo()));
String path = baseRequest.getMetaData().getURI().getDecodedPath();
return _set.test(new AccessTuple(connectorName, addr, path));
}

@Override
Expand Down

0 comments on commit d938fca

Please sign in to comment.