diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-11 23:25:42 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-11 23:26:13 -0500 |
commit | b0c4fd6d3f1c8e44896358ee9b0af20e9b304944 (patch) | |
tree | c7cd88516cd20368fa4478e2effc950fd121c336 /src/settings.h | |
parent | f114fc74d621a7cfb1e63b5405fddb0208ee71d2 (diff) | |
download | minetest-b0c4fd6d3f1c8e44896358ee9b0af20e9b304944.tar.gz minetest-b0c4fd6d3f1c8e44896358ee9b0af20e9b304944.tar.bz2 minetest-b0c4fd6d3f1c8e44896358ee9b0af20e9b304944.zip |
Settings: Sanitize value for multiline terminator tokens
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index cf27f2620..ba7e9c144 100644 --- a/src/settings.h +++ b/src/settings.h @@ -112,6 +112,8 @@ public: bool updateConfigObject(std::istream &is, std::ostream &os, const std::string &end, u32 tab_depth=0); + static std::string sanitizeName(const std::string &name); + static std::string sanitizeValue(const std::string &value); static std::string getMultiline(std::istream &is, size_t *num_lines=NULL); static void printEntry(std::ostream &os, const std::string &name, const SettingsEntry &entry, u32 tab_depth=0); |