1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

fix debug.getinfo not being unset in CPCSM (regression)

was introduced in eeb6cab
This commit is contained in:
Desour 2025-03-25 13:47:14 +01:00
parent 051e824787
commit fabb6736a1
3 changed files with 5 additions and 2 deletions

View file

@ -40,7 +40,7 @@ stds.menu_common = {
}, },
} }
files["builtin/client/register.lua"] = { files["builtin/client/init.lua"] = {
globals = { globals = {
debug = {fields={"getinfo"}}, debug = {fields={"getinfo"}},
} }

View file

@ -13,3 +13,6 @@ dofile(commonpath .. "information_formspecs.lua")
dofile(clientpath .. "chatcommands.lua") dofile(clientpath .. "chatcommands.lua")
dofile(clientpath .. "misc.lua") dofile(clientpath .. "misc.lua")
assert(loadfile(commonpath .. "item_s.lua"))({}) -- Just for push/read node functions assert(loadfile(commonpath .. "item_s.lua"))({}) -- Just for push/read node functions
-- unset, as promised in initializeSecurityClient()
debug.getinfo = nil

View file

@ -311,7 +311,7 @@ void ScriptApiSecurity::initializeSecurityClient()
"time" "time"
}; };
static const char *debug_whitelist[] = { static const char *debug_whitelist[] = {
"getinfo", // used by builtin and unset before mods load <- FIXME: doesn't actually happen "getinfo", // used by builtin and unset before mods load
"traceback" "traceback"
}; };