Skip to content

Commit

Permalink
The original problem was issueCrumb (probably validateCrumb too)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Sep 3, 2024
1 parent 715c02c commit 6cae674
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 @@ -114,7 +114,7 @@ public String getCrumb(javax.servlet.ServletRequest request) {
protected /* abstract */ String issueCrumb(ServletRequest request, String salt) {
return Util.ifOverridden(
() -> issueCrumb(
request != null ? ServletRequestWrapper.fromJakartaServletRequest(request) : null, salt),
request != null ? wrap(request) : null, salt),
CrumbIssuer.class,
getClass(),
"issueCrumb",
Expand All @@ -128,7 +128,7 @@ public String getCrumb(javax.servlet.ServletRequest request) {
@Deprecated
protected String issueCrumb(javax.servlet.ServletRequest request, String salt) {
return Util.ifOverridden(
() -> issueCrumb(request != null ? ServletRequestWrapper.toJakartaServletRequest(request) : null, salt),
() -> issueCrumb(request != null ? wrap(request) : null, salt),
CrumbIssuer.class,
getClass(),
"issueCrumb",
Expand Down

0 comments on commit 6cae674

Please sign in to comment.