1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Settings: Sanitize setting name everywhere, not just LuaSettings

This commit is contained in:
kwolekr 2014-12-09 23:52:13 -05:00
parent d50878d608
commit 88c28414f4
4 changed files with 12 additions and 14 deletions

View file

@ -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;
}