1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

unset debug.getinfo

This commit is contained in:
Desour 2025-03-25 13:45:22 +01:00
parent a2f98b1879
commit 5a422ca0c6
7 changed files with 22 additions and 10 deletions

View file

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