From bbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 17 May 2013 02:03:16 +0100 Subject: Use iostream instead of C-style file operations. --- include/configreader.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/configreader.h') diff --git a/include/configreader.h b/include/configreader.h index b9ca6940e..a17c5cf3e 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -521,6 +521,12 @@ class CoreExport ServerConfig * @return True if the file exists and is readable. */ static bool FileExists(const char* file); + + /** Escapes a value for storage in a configuration key. + * @param str The string to escape. + * @param xml Are we using the XML config format? + */ + static std::string Escape(const std::string& str, bool xml = true); /** If this value is true, invites will bypass more than just +i */ -- cgit v1.3.1-10-gc9f91