提交 a2a8721c 编写于 作者: O OHTAKE Tomohiro

[FIXED JENKINS-11397] Require POST for doConfigSubmit on views

上级 c2057762
......@@ -55,7 +55,9 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=>
<li class=bug>
Configuring view when not logged in wipes view configuration
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-11397">issue 11397</a>)
</ul>
</div><!--=TRUNK-END=-->
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册