From d923825207035bcba76bf07387f2589f57a78478 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Mon, 2 Sep 2024 09:08:05 -0700 Subject: [PATCH] Different CSRF fix --- core/src/main/java/hudson/model/View.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/hudson/model/View.java b/core/src/main/java/hudson/model/View.java index e6a275ed88cc..e807fa23de30 100644 --- a/core/src/main/java/hudson/model/View.java +++ b/core/src/main/java/hudson/model/View.java @@ -790,6 +790,7 @@ public synchronized void doDoDelete(StaplerRequest2 req, StaplerResponse2 rsp) t * null if fails. * @since TODO */ + @RequirePOST public /* abstract */ Item doCreateItem(StaplerRequest2 req, StaplerResponse2 rsp) throws IOException, ServletException { if (Util.isOverridden(View.class, getClass(), "doCreateItem", StaplerRequest.class, StaplerResponse.class)) { try {