From c63f0951e3a08860f3eb60b905d93b0965ffe49a Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 4 May 2014 21:13:58 +0300 Subject: [PATCH] Trim variable name when parsing configuration --- pdns/arguments.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/arguments.cc b/pdns/arguments.cc index 0200140b1..9fcc5a0b7 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 -- 2.40.0