diff --git a/source/net/filebot/format/SecureCompiledScript.java b/source/net/filebot/format/SecureCompiledScript.java index f00894a7..b56eb31e 100644 --- a/source/net/filebot/format/SecureCompiledScript.java +++ b/source/net/filebot/format/SecureCompiledScript.java @@ -1,5 +1,6 @@ package net.filebot.format; +import java.awt.AWTPermission; import java.io.File; import java.io.FilePermission; import java.lang.management.ManagementPermission; @@ -41,6 +42,7 @@ public class SecureCompiledScript extends CompiledScript { permissions.add(new RuntimePermission("getFileSystemAttributes")); permissions.add(new RuntimePermission("readFileDescriptor")); permissions.add(new RuntimePermission("preferences")); + permissions.add(new AWTPermission("toolkitModality")); permissions.add(new FilePermission("<>", "read")); permissions.add(new SocketPermission("*", "connect")); permissions.add(new PropertyPermission("*", "read"));