aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-09 23:52:13 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-09 23:52:13 -0500
commit88c28414f4a88c8d66f9cadb150896f9e25527ae (patch)
tree86fa93a500aa4443eff36e49b9c5cae897acc16b /src/script
parentd50878d608fdea2be890ff75b93212f5bba1d6f8 (diff)
downloadminetest-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.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 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;
}