diff options
author | kwolekr <kwolekr@minetest.net> | 2014-11-30 19:01:37 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-11-30 19:01:54 -0500 |
commit | 360660947b8137fba78981932de6b503b9889e62 (patch) | |
tree | 94e7a83675b44fe14b071c9d2332bab163ff3eda /src/script | |
parent | 16781da4f97af2704cae3a5534bd1a80db2d74c4 (diff) | |
download | minetest-360660947b8137fba78981932de6b503b9889e62.tar.gz minetest-360660947b8137fba78981932de6b503b9889e62.tar.bz2 minetest-360660947b8137fba78981932de6b503b9889e62.zip |
LuaSettings: Sanitize setting name strings
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_settings.cpp b/src/script/lua_api/l_settings.cpp index 13a88ee95..c2c6f009d 100644 --- a/src/script/lua_api/l_settings.cpp +++ b/src/script/lua_api/l_settings.cpp @@ -73,7 +73,7 @@ int LuaSettings::l_set(lua_State* L) std::string key = std::string(luaL_checkstring(L, 2)); const char* value = luaL_checkstring(L, 3); - o->m_settings->set(key, value); + o->m_settings->set(Settings::sanitizeString(key), value); return 1; } |