diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-09 23:52:13 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-09 23:52:13 -0500 |
commit | 88c28414f4a88c8d66f9cadb150896f9e25527ae (patch) | |
tree | 86fa93a500aa4443eff36e49b9c5cae897acc16b /src/script | |
parent | d50878d608fdea2be890ff75b93212f5bba1d6f8 (diff) | |
download | minetest-88c28414f4a88c8d66f9cadb150896f9e25527ae.tar.gz minetest-88c28414f4a88c8d66f9cadb150896f9e25527ae.tar.bz2 minetest-88c28414f4a88c8d66f9cadb150896f9e25527ae.zip |
Settings: Sanitize setting name everywhere, not just LuaSettings
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 c2c6f009d..13a88ee95 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(Settings::sanitizeString(key), value); + o->m_settings->set(key, value); return 1; } |