[MNT-23424] Clean Rhino scope only for custom scripts (#1696)

This commit is contained in:
tiagosalvado10
2023-01-25 16:14:40 +00:00
committed by GitHub
parent dc059ad575
commit e96f1804c0

View File

@@ -606,7 +606,10 @@ public class RhinoScriptProcessor extends BaseProcessor implements ScriptProcess
} }
finally finally
{ {
unsetScope(model, scope); if (!secure)
{
unsetScope(model, scope);
}
Context.exit(); Context.exit();
if (callLogger.isDebugEnabled()) if (callLogger.isDebugEnabled())
@@ -884,4 +887,4 @@ public class RhinoScriptProcessor extends BaseProcessor implements ScriptProcess
} }
} }
} }
} }