Update core/src/main/java/hudson/Functions.java

This commit is contained in:
Tim Jacomb authored and GitHub committed 2024-09-16 14:15:02 +01:00
1 parent 08a248cd00
commit f3913dd62c
1 file changed
+1 -1
+1 -1
View File
@@ -2584,7 +2584,7 @@ public class Functions {
*/
@Restricted(NoExternalUse.class)
public static String translateModifierKeysForUsersPlatform(String keyboardShortcut) {
StaplerRequest currentRequest = Stapler.getCurrentRequest();
StaplerRequest2 currentRequest = Stapler.getCurrentRequest();
currentRequest.getWebApp().getDispatchValidator().allowDispatch(currentRequest, Stapler.getCurrentResponse());
String userAgent = currentRequest.getHeader("User-Agent");