From: Aki Tuomi Date: Sun, 4 May 2014 18:13:58 +0000 (+0300) Subject: Trim variable name when parsing configuration X-Git-Tag: rec-3.6.0~19^2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c63f0951e3a08860f3eb60b905d93b0965ffe49a;p=thirdparty%2Fpdns.git Trim variable name when parsing configuration --- diff --git a/pdns/arguments.cc b/pdns/arguments.cc index 0200140b1b..9fcc5a0b75 100644 --- a/pdns/arguments.cc +++ b/pdns/arguments.cc @@ -326,6 +326,8 @@ void ArgvMap::parseOne(const string &arg, const string &parseOnly, bool lax) } else // command d_cmds.push_back(arg); + + boost::trim(var); if(var!="" && (parseOnly.empty() || var==parseOnly)) { pos=val.find_first_not_of(" \t"); // strip leading whitespace