Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interpreter to blacklist #435

Merged
merged 1 commit into from Apr 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Add interpreter to blacklist
  • Loading branch information
Matt Coley committed Apr 28, 2020
commit 1b9aaa4b420c58b4a301cf4b7d26207f1c8d1165
Expand Up @@ -2,6 +2,7 @@

import com.google.common.base.CaseFormat;
import com.google.common.collect.ImmutableSet;
import com.hubspot.jinjava.interpret.JinjavaInterpreter;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
Expand Down Expand Up @@ -136,7 +137,8 @@ protected boolean isRestrictedClass(Object o) {
o instanceof Thread ||
o instanceof Method ||
o instanceof Field ||
o instanceof Constructor
o instanceof Constructor ||
o instanceof JinjavaInterpreter
);
}
}