mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 00:55:59 +00:00
[JENKINS-59514] Use POST instead of RequirePOST for form submissions (#4223)
* [JENKINS-59514] Use POST instead of RequirePOST for form submissions * More form submission URLs * More form submission endpoints
This commit is contained in:
1 parent
dd047e5d31
commit
16145cca86
18 files changed
+42
-28
No files matched your search
@@ -99,6 +99,7 @@ import org.kohsuke.stapler.StaplerResponse;
|
||||
import org.kohsuke.stapler.export.Exported;
|
||||
import org.kohsuke.stapler.export.ExportedBean;
|
||||
import org.kohsuke.stapler.interceptor.RequirePOST;
|
||||
import org.kohsuke.stapler.verb.POST;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xml.sax.SAXException;
|
||||
@@ -1612,7 +1613,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
return new HttpRedirect("advanced");
|
||||
}
|
||||
|
||||
@RequirePOST
|
||||
@POST
|
||||
public HttpResponse doProxyConfigure(StaplerRequest req) throws IOException, ServletException {
|
||||
Jenkins jenkins = Jenkins.get();
|
||||
jenkins.checkPermission(CONFIGURE_UPDATECENTER);
|
||||
|
||||
Reference in new issue
Block a user