summaryrefslogtreecommitdiff
path: root/src/test.cpp
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/test.cpp
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/test.cpp')
-rw-r--r--src/test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test.cpp b/src/test.cpp
index 63d8219a9..adae8ff57 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -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 ");