1
0

Merge pull request #2969 from LogicParrot/ini

Ignore trailing and leading spaces in INI values
This commit is contained in:
LogicParrot 2016-02-08 00:33:16 +02:00
commit aefacbd3cd

View File

@ -146,7 +146,7 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
case '=': case '=':
{ {
valuename = line.substr(0, pLeft); valuename = line.substr(0, pLeft);
value = line.substr(pLeft + 1); value = TrimString(line.substr(pLeft + 1));
AddValue(keyname, valuename, value); AddValue(keyname, valuename, value);
break; break;
} }