Skip to content

Commit

Permalink
Restrict form validation to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed Jun 27, 2024
1 parent 7fa62d8 commit 665303a
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 665303a

Please sign in to comment.