aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-06-26 19:37:14 +0200
committerSmallJoker <mk939@ymail.com>2019-09-14 19:42:30 +0200
commitb0baa698a495cc990ce5d9c22763957f1138aed3 (patch)
tree3ebc2a62265d9035739fddacfc9e1b66d9ab3f5a /src/script/cpp_api
parent23677be951b4dc2b9cc174ceb92f0e0b8e8eb867 (diff)
downloadminetest-b0baa698a495cc990ce5d9c22763957f1138aed3.tar.gz
minetest-b0baa698a495cc990ce5d9c22763957f1138aed3.tar.bz2
minetest-b0baa698a495cc990ce5d9c22763957f1138aed3.zip
CSM: Fix itemstack:get_meta() 'metadata' indexing error
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r--src/script/cpp_api/s_security.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_security.cpp b/src/script/cpp_api/s_security.cpp
index d972be980..b90b3aa2c 100644
--- a/src/script/cpp_api/s_security.cpp
+++ b/src/script/cpp_api/s_security.cpp
@@ -243,6 +243,7 @@ void ScriptApiSecurity::initializeSecurityClient()
"rawset",
"select",
"setfenv",
+ // getmetatable can be used to escape the sandbox
"setmetatable",
"tonumber",
"tostring",