diff options
author | sfan5 <sfan5@live.de> | 2021-12-17 18:31:29 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-12-18 20:37:13 +0100 |
commit | 8c99f2232bdb52459ccf2a5b751cbe3f7797abc3 (patch) | |
tree | 2078e91dedcd2112e6644fc53e45f32a0b7281fe /src/script/common/c_internal.h | |
parent | 8472141b79c25092c90dea24aa873bd7ff792142 (diff) | |
download | minetest-8c99f2232bdb52459ccf2a5b751cbe3f7797abc3.tar.gz minetest-8c99f2232bdb52459ccf2a5b751cbe3f7797abc3.tar.bz2 minetest-8c99f2232bdb52459ccf2a5b751cbe3f7797abc3.zip |
Don't let HTTP API pass through untrusted function
This has been a problem since the first day, oops.
Diffstat (limited to 'src/script/common/c_internal.h')
-rw-r--r-- | src/script/common/c_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/common/c_internal.h b/src/script/common/c_internal.h index ab2d7b975..94cfd61fb 100644 --- a/src/script/common/c_internal.h +++ b/src/script/common/c_internal.h @@ -54,6 +54,8 @@ extern "C" { #define CUSTOM_RIDX_GLOBALS_BACKUP (CUSTOM_RIDX_BASE + 1) #define CUSTOM_RIDX_CURRENT_MOD_NAME (CUSTOM_RIDX_BASE + 2) #define CUSTOM_RIDX_BACKTRACE (CUSTOM_RIDX_BASE + 3) +#define CUSTOM_RIDX_HTTP_API_LUA (CUSTOM_RIDX_BASE + 4) + // Determine if CUSTOM_RIDX_SCRIPTAPI will hold a light or full userdata #if defined(__aarch64__) && USE_LUAJIT |