We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d4233 commit d9edaebCopy full SHA for d9edaeb
sdk/luascript/luascript.go
@@ -56,7 +56,7 @@ func NewCheck() (*Check, error) {
56
state.PreloadModule("json", luajson.Loader)
57
58
// Sandboxing lua engine
59
- if err := state.DoString("coroutine=nil;debug=nil;io=nil;open=nil;os.rename=nil;os.remove=nil;os.exit=nil;os.clock=nil;os.execute=nil;os.getenv=nil;os.setlocale=nil;os.tmpname=nil"); err != nil {
+ if err := state.DoString("coroutine=nil;debug=nil;io=nil;open=nil;dofile=nil;loadfile=nil;getfenv=nil;print=nil;pcall=nil;os.rename=nil;os.remove=nil;os.exit=nil;os.clock=nil;os.execute=nil;os.getenv=nil;os.setlocale=nil;os.tmpname=nil"); err != nil {
60
return nil, err
61
}
62
0 commit comments