mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Settings: Sanitize value for multiline terminator tokens
This commit is contained in:
parent
f114fc74d6
commit
b0c4fd6d3f
2 changed files with 30 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue