From a42ed076e368ca860eee23fa0df096c358bde6d8 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Tue, 3 Sep 2024 13:15:13 -0700 Subject: [PATCH] Two more calls to wrap --- core/src/main/java/hudson/security/csrf/CrumbIssuer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/security/csrf/CrumbIssuer.java b/core/src/main/java/hudson/security/csrf/CrumbIssuer.java index e45331774509..491ec735b591 100644 --- a/core/src/main/java/hudson/security/csrf/CrumbIssuer.java +++ b/core/src/main/java/hudson/security/csrf/CrumbIssuer.java @@ -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); } /** @@ -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",