Skip to content

Commit

Permalink
feat: add IntRange to Groovy restriction whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
florianesser committed Sep 12, 2024
1 parent 7971b98 commit 0a78400
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import eu.esdihumboldt.util.groovy.sandbox.GroovyRestrictionException;
import groovy.lang.Closure;
import groovy.lang.GString;
import groovy.lang.IntRange;
import groovy.lang.MissingPropertyException;
import groovy.lang.Range;
import groovy.lang.Script;
Expand Down Expand Up @@ -156,6 +157,7 @@ public class RestrictiveGroovyInterceptor extends GroovyInterceptor {
allowedClasses.add(LinkedHashSet.class);
allowedClasses.add(ArrayList.class);
allowedClasses.add(Range.class);
allowedClasses.add(IntRange.class);
allowedClasses.add(GStringImpl.class);

// Some more collections
Expand Down

0 comments on commit 0a78400

Please sign in to comment.