mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 17:52:24 +00:00
add print to not allowed functions
This commit is contained in:
@@ -50,6 +50,7 @@ func (h *HandlerV1) handleLUA(sid string, r *http.Request, req *rpc.RPCRequest,
|
|||||||
for _, k := range []string{"write", "output", "flush", "read", "input"} {
|
for _, k := range []string{"write", "output", "flush", "read", "input"} {
|
||||||
ioMod.RawSetString(k, lua.LNil)
|
ioMod.RawSetString(k, lua.LNil)
|
||||||
}
|
}
|
||||||
|
L.Env.RawSetString("print", lua.LNil)
|
||||||
|
|
||||||
for _, name := range []string{"stdout", "stderr", "stdin"} {
|
for _, name := range []string{"stdout", "stderr", "stdin"} {
|
||||||
stream := ioMod.RawGetString(name)
|
stream := ioMod.RawGetString(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user