From 65746de112ec6354bd5f3e09b5a2210dc9f6810e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 26 Nov 2022 11:35:49 +1100 Subject: [PATCH] AP_Scripting: enable load() function in lua scripts can be used to parse user supplied lua --- libraries/AP_Scripting/lua/src/lbaselib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/lua/src/lbaselib.c b/libraries/AP_Scripting/lua/src/lbaselib.c index 0e07cea462..34a3a0ab49 100644 --- a/libraries/AP_Scripting/lua/src/lbaselib.c +++ b/libraries/AP_Scripting/lua/src/lbaselib.c @@ -461,7 +461,7 @@ static const luaL_Reg base_funcs[] = { // {"getmetatable", luaB_getmetatable}, {"ipairs", luaB_ipairs}, // {"loadfile", luaB_loadfile}, -// {"load", luaB_load}, + {"load", luaB_load}, #if defined(LUA_COMPAT_LOADSTRING) {"loadstring", luaB_load}, #endif