client/sandbox.lua: Whitelist error()

master
Perttu Ahola 2014-10-26 22:38:56 +02:00
parent e99f96b334
commit 1291d08c32
1 changed files with 1 additions and 0 deletions

View File

@ -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,