mirror of
https://github.com/glest/glest-source.git
synced 2025-09-25 23:19:07 +02:00
- added first round of security sandboxing for lua scripts (disable the os library)
This commit is contained in:
@@ -42,12 +42,16 @@ private:
|
||||
string sandboxWrapperFunctionName;
|
||||
string sandboxCode;
|
||||
|
||||
static bool disableSandbox;
|
||||
|
||||
void DumpGlobals();
|
||||
|
||||
public:
|
||||
LuaScript();
|
||||
~LuaScript();
|
||||
|
||||
static void setDisableSandbox(bool value) { disableSandbox = value; }
|
||||
|
||||
void loadCode(string code, string name);
|
||||
|
||||
void beginCall(string functionName);
|
||||
|
Reference in New Issue
Block a user