From: Gunnar Beutner Date: Tue, 11 Aug 2015 11:58:02 +0000 (+0200) Subject: Use an empty dictionary for the 'this' scope when executing commands with Livestatus X-Git-Tag: v2.3.9~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56a3b0cab7f924fdb53ea70f0025229dcbd1bb44;p=icinga2 Use an empty dictionary for the 'this' scope when executing commands with Livestatus fixes #9883 --- diff --git a/lib/livestatus/livestatusquery.cpp b/lib/livestatus/livestatusquery.cpp index 9d904805e..71ad4eb5c 100644 --- a/lib/livestatus/livestatusquery.cpp +++ b/lib/livestatus/livestatusquery.cpp @@ -635,6 +635,7 @@ void LivestatusQuery::ExecuteScriptHelper(const Stream::Ptr& stream) try { ScriptFrame frame; frame.Locals = lsf.Locals; + frame.Self = lsf.Locals; result = expr->Evaluate(frame); } catch (const ScriptError& ex) { delete expr;