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

This commit is contained in:
Elias Ohm 2019-05-02 09:03:30 +02:00
parent 53febdea81
commit c10ff9dd72
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ std::vector<Value> 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;
@ -243,7 +243,7 @@ std::vector<Value> 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")) {