mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Use an empty dictionary for the 'this' scope when executing commands with Livestatus
fixes #9883
This commit is contained in:
parent
c7714653a4
commit
56a3b0cab7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user