diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-09 23:52:13 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-09 23:52:13 -0500 |
commit | 88c28414f4a88c8d66f9cadb150896f9e25527ae (patch) | |
tree | 86fa93a500aa4443eff36e49b9c5cae897acc16b /src/settings.h | |
parent | d50878d608fdea2be890ff75b93212f5bba1d6f8 (diff) | |
download | minetest-88c28414f4a88c8d66f9cadb150896f9e25527ae.tar.gz minetest-88c28414f4a88c8d66f9cadb150896f9e25527ae.tar.bz2 minetest-88c28414f4a88c8d66f9cadb150896f9e25527ae.zip |
Settings: Sanitize setting name everywhere, not just LuaSettings
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h index 7241877bd..cf27f2620 100644 --- a/src/settings.h +++ b/src/settings.h @@ -55,6 +55,7 @@ struct ValueSpec { type = a_type; help = a_help; } + ValueType type; const char *help; }; @@ -112,7 +113,6 @@ public: const std::string &end, u32 tab_depth=0); static std::string getMultiline(std::istream &is, size_t *num_lines=NULL); - static std::string sanitizeString(const std::string &value); static void printEntry(std::ostream &os, const std::string &name, const SettingsEntry &entry, u32 tab_depth=0); |