Skip to content

Commit

Permalink
Merge pull request #33 from jenkinsci/stapler-issue
Browse files Browse the repository at this point in the history
Restrict form validation to POST
  • Loading branch information
TobiX authored Jun 27, 2024
2 parents 7fa62d8 + 665303a commit 5450b74
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.verb.POST;

public abstract class AgedRefsTrait extends SCMSourceTrait {

Expand Down Expand Up @@ -46,6 +47,7 @@ public String getDisplayName() {
}

@Restricted(NoExternalUse.class)
@POST
public FormValidation doCheckRetentionDays(@QueryParameter String value) {
FormValidation formValidation = FormValidation.ok();

Expand Down

0 comments on commit 5450b74

Please sign in to comment.