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

@ -531,7 +531,9 @@ struct TestSettings: public TestBase
group2->setS16("num_oranges", 53);
group2->setGroup("animals", group3);
group2->set("animals", "cute"); //destroys group 3
s.setGroup("groupy_thing", group2);
// the bad chars in here should be stripped
s.setGroup("groupy \"_\" thing", group2);
// Test multiline settings
UASSERT(group->get("ccc") == "testy\n testa ");