mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-28 20:15:22 +00:00
fixed a security hole.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3740 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b576546538
commit
1ff064187b
2 files changed
+6
-1
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package hudson;
|
||||
|
||||
import hudson.util.IOException2;
|
||||
import hudson.model.Hudson;
|
||||
import org.apache.tools.ant.BuildException;
|
||||
import org.apache.tools.ant.Project;
|
||||
import org.apache.tools.ant.taskdefs.Expand;
|
||||
@@ -434,10 +435,14 @@ public final class PluginWrapper {
|
||||
//
|
||||
//
|
||||
public void doMakeEnabled(StaplerRequest req, StaplerResponse rsp) throws IOException {
|
||||
if(!Hudson.adminCheck(req,rsp))
|
||||
return;
|
||||
enable();
|
||||
rsp.setStatus(200);
|
||||
}
|
||||
public void doMakeDisabled(StaplerRequest req, StaplerResponse rsp) throws IOException {
|
||||
if(!Hudson.adminCheck(req,rsp))
|
||||
return;
|
||||
disable();
|
||||
rsp.setStatus(200);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user