aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-11-30 19:01:37 -0500
committerkwolekr <kwolekr@minetest.net>2014-11-30 19:01:54 -0500
commit360660947b8137fba78981932de6b503b9889e62 (patch)
tree94e7a83675b44fe14b071c9d2332bab163ff3eda /src/script
parent16781da4f97af2704cae3a5534bd1a80db2d74c4 (diff)
downloadminetest-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.cpp2
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;
}