summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-02-07 23:33:16 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-02-07 23:33:16 +0100
commitaefacbd3cd533709c636985cc00f6d583bc3da62 (patch)
tree42bc46d74195d8746fab1292a31b25b6e4c263a8
parentMerge pull request #2981 from Drahoslav7/master (diff)
parentIgnore trailing and leading spaces in INI values# Please enter the commit message for your changes. Lines starting (diff)
downloadcuberite-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
-rw-r--r--src/IniFile.cpp2
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;
}