From 1291d08c328ec67f127e9b117d1fcadaab1fa0e6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 26 Oct 2014 22:38:56 +0200 Subject: [PATCH] client/sandbox.lua: Whitelist error() --- client/sandbox.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/sandbox.lua b/client/sandbox.lua index 7f1eecb..2544150 100644 --- a/client/sandbox.lua +++ b/client/sandbox.lua @@ -10,6 +10,7 @@ local dump = buildat.dump __buildat_sandbox_environment = { assert = assert, -- Safe according to http://lua-users.org/wiki/SandBoxes + error = error, -- Base sandbox from -- http://stackoverflow.com/questions/1224708/how-can-i-create-a-secure-lua-sandbox/6982080#6982080 ipairs = ipairs,