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:
parent
d50878d608
commit
88c28414f4
4 changed files with 12 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue