Fix shell escaping in the macro processor.

This commit is contained in:
Gunnar Beutner 2013-08-30 16:52:13 +02:00
parent 1a3ecb04fb
commit 8df0525e3e
1 changed files with 3 additions and 3 deletions

View File

@ -94,12 +94,12 @@ String MacroProcessor::InternalResolveMacros(const String& str, const std::vecto
if (!found)
Log(LogWarning, "icinga", "Macro '" + name + "' is not defined.");
if (escapeFn)
resolved_macro = escapeFn(resolvedMacro);
result.Replace(pos_first, pos_second - pos_first + 1, resolved_macro);
offset = pos_first + resolved_macro.GetLength();
}
if (escapeFn)
result = escapeFn(result);
return result;
}