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

LuaSettings: Sanitize setting name strings

This commit is contained in:
kwolekr 2014-11-30 19:01:37 -05:00
parent 16781da4f9
commit 360660947b
3 changed files with 12 additions and 1 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(key, value);
o->m_settings->set(Settings::sanitizeString(key), value);
return 1;
}