From a2a8721cfab152378076c9dbf716cff03cac5bbd Mon Sep 17 00:00:00 2001 From: OHTAKE Tomohiro Date: Wed, 19 Oct 2011 18:21:35 +0900 Subject: [PATCH] [FIXED JENKINS-11397] Require POST for doConfigSubmit on views --- changelog.html | 4 +++- core/src/main/java/hudson/model/View.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.html b/changelog.html index 33b6b76e96..cc8a85c1e2 100644 --- a/changelog.html +++ b/changelog.html @@ -55,7 +55,9 @@ Upcoming changes diff --git a/core/src/main/java/hudson/model/View.java b/core/src/main/java/hudson/model/View.java index f043487cab..d309cae311 100644 --- a/core/src/main/java/hudson/model/View.java +++ b/core/src/main/java/hudson/model/View.java @@ -698,6 +698,7 @@ public abstract class View extends AbstractModelObject implements AccessControll */ public final synchronized void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { checkPermission(CONFIGURE); + requirePOST(); submit(req);