From c6f84e24da4ad2bace17e3eed4eeb32938e558ee Mon Sep 17 00:00:00 2001 From: Elias Ohm Date: Thu, 2 May 2019 09:03:30 +0200 Subject: [PATCH] try without initialization of frame Locals which are not used for permissions filter and as far as I can see also not for query filters (cherry picked from commit c10ff9dd726da0485f99f8c8601a0feb95cfd28f) --- lib/remote/filterutility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/remote/filterutility.cpp b/lib/remote/filterutility.cpp index 255bb96c6..7ef6f65b7 100644 --- a/lib/remote/filterutility.cpp +++ b/lib/remote/filterutility.cpp @@ -208,7 +208,7 @@ std::vector FilterUtility::GetFilterTargets(const QueryDescription& qd, c CheckPermission(user, qd.Permission, &permissionFilter); Namespace::Ptr permissionFrameNS = new Namespace(); - ScriptFrame permissionFrame(true, permissionFrameNS); + ScriptFrame permissionFrame(false, permissionFrameNS); for (const String& type : qd.Types) { String attr = type; @@ -259,7 +259,7 @@ std::vector FilterUtility::GetFilterTargets(const QueryDescription& qd, c BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid type specified for this query.")); Namespace::Ptr frameNS = new Namespace(); - ScriptFrame frame(true, frameNS); + ScriptFrame frame(false, frameNS); frame.Sandboxed = true; if (query->Contains("filter")) { -- 2.40.0