diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-07 23:33:16 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-07 23:33:16 +0100 |
commit | aefacbd3cd533709c636985cc00f6d583bc3da62 (patch) | |
tree | 42bc46d74195d8746fab1292a31b25b6e4c263a8 /src/IniFile.cpp | |
parent | Merge pull request #2981 from Drahoslav7/master (diff) | |
parent | Ignore trailing and leading spaces in INI values# Please enter the commit message for your changes. Lines starting (diff) | |
download | cuberite-aefacbd3cd533709c636985cc00f6d583bc3da62.tar cuberite-aefacbd3cd533709c636985cc00f6d583bc3da62.tar.gz cuberite-aefacbd3cd533709c636985cc00f6d583bc3da62.tar.bz2 cuberite-aefacbd3cd533709c636985cc00f6d583bc3da62.tar.lz cuberite-aefacbd3cd533709c636985cc00f6d583bc3da62.tar.xz cuberite-aefacbd3cd533709c636985cc00f6d583bc3da62.tar.zst cuberite-aefacbd3cd533709c636985cc00f6d583bc3da62.zip |
Diffstat (limited to '')
-rw-r--r-- | src/IniFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IniFile.cpp b/src/IniFile.cpp index 1e5416813..4a1c8e735 100644 --- a/src/IniFile.cpp +++ b/src/IniFile.cpp @@ -146,7 +146,7 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect) case '=': { valuename = line.substr(0, pLeft); - value = line.substr(pLeft + 1); + value = TrimString(line.substr(pLeft + 1)); AddValue(keyname, valuename, value); break; } |