From b0baa698a495cc990ce5d9c22763957f1138aed3 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Wed, 26 Jun 2019 19:37:14 +0200 Subject: CSM: Fix itemstack:get_meta() 'metadata' indexing error --- src/script/cpp_api/s_security.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/script/cpp_api') 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", -- cgit v1.2.3