[SECURITY-413][SECURITY-414] RequirePOST in plugin manager

This commit is contained in:
Daniel Beck authored and Jesse Glick committed 2017-04-13 13:32:35 -04:00
1 parent 3c5e5ca63d
commit 3e1f02b5c3
2 files changed
+3

No files matched your search

@@ -745,6 +745,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
LogFactory.release(uberClassLoader);
}
@RequirePOST
public HttpResponse doUpdateSources(StaplerRequest req) throws IOException {
Jenkins.getInstance().checkPermission(CONFIGURE_UPDATECENTER);
@@ -767,6 +768,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
/**
* Performs the installation of the plugins.
*/
@RequirePOST
public void doInstall(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
boolean dynamicLoad = req.getParameter("dynamicLoad")!=null;