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/lua_api/l_http.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/lua_api/l_http.h')
-rw-r--r-- | src/script/lua_api/l_http.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_http.h b/src/script/lua_api/l_http.h index c3a2a5276..17fa283ba 100644 --- a/src/script/lua_api/l_http.h +++ b/src/script/lua_api/l_http.h @@ -41,6 +41,9 @@ private: // http_fetch_async_get(handle) static int l_http_fetch_async_get(lua_State *L); + // set_http_api_lua() [internal] + static int l_set_http_api_lua(lua_State *L); + // request_http_api() static int l_request_http_api(lua_State *L); |