Skip to content

Commit

Permalink
Two more calls to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Sep 3, 2024
1 parent 6cae674 commit a42ed07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/security/csrf/CrumbIssuer.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public String getCrumb(ServletRequest request) {
*/
@Deprecated
public String getCrumb(javax.servlet.ServletRequest request) {
return getCrumb(request != null ? ServletRequestWrapper.toJakartaServletRequest(request) : null);
return getCrumb(request != null ? wrap(request) : null);
}

/**
Expand Down Expand Up @@ -211,7 +211,7 @@ private static javax.servlet.ServletRequest wrap(@NonNull ServletRequest request
@Deprecated
public boolean validateCrumb(javax.servlet.ServletRequest request, String salt, String crumb) {
return Util.ifOverridden(
() -> validateCrumb(request != null ? ServletRequestWrapper.toJakartaServletRequest(request) : null, salt, crumb),
() -> validateCrumb(request != null ? wrap(request) : null, salt, crumb),
CrumbIssuer.class,
getClass(),
"validateCrumb",
Expand Down

0 comments on commit a42ed07

Please sign in to comment.