Skip to content

Commit

Permalink
[CXF-9112]OAuthRequestFilter: Better to use CXF StringUtils to check …
Browse files Browse the repository at this point in the history
…if servletPath|pathInfo isEmpty or not
  • Loading branch information
ffang committed Feb 20, 2025
1 parent 3efe2de commit 65c4e43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ protected boolean checkRequestURI(HttpServletRequest request, List<String> uris,
}
String servletPath = request.getServletPath();
String pathInfo = request.getPathInfo();
if (pathInfo == null) {
if (StringUtils.isEmpty(pathInfo)) {
if (servletPath != null) {
servletPath += "";
}
} else {
servletPath += pathInfo;
}
if (servletPath == null) {
if (StringUtils.isEmpty(servletPath)) {
servletPath = (String)m.get(Message.PATH_INFO);
}
boolean foundValidScope = false;
Expand Down

0 comments on commit 65c4e43

Please sign in to comment.