aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authormemesaregood1 <sifepe4679@yandex.ru>2023-02-22 23:11:25 +0300
committermemesaregood1 <sifepe4679@yandex.ru>2023-02-22 23:11:25 +0300
commit41fe87006c89ee1ddf727878448ba83cb4537ebf (patch)
tree0326dd295d5dc3fd24216f998434309675818209 /src/main/java
parent0fe0344a64b142ef4492ff6ad3c1f8590d336ab0 (diff)
downloadtrackermap-server-41fe87006c89ee1ddf727878448ba83cb4537ebf.tar.gz
trackermap-server-41fe87006c89ee1ddf727878448ba83cb4537ebf.tar.bz2
trackermap-server-41fe87006c89ee1ddf727878448ba83cb4537ebf.zip
Fix Math namespace
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/handler/ComputedAttributesHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/handler/ComputedAttributesHandler.java b/src/main/java/org/traccar/handler/ComputedAttributesHandler.java
index 2964d81d7..0eab509ee 100644
--- a/src/main/java/org/traccar/handler/ComputedAttributesHandler.java
+++ b/src/main/java/org/traccar/handler/ComputedAttributesHandler.java
@@ -64,6 +64,7 @@ public class ComputedAttributesHandler extends BaseDataHandler {
this.cacheManager = cacheManager;
JexlSandbox sandbox = new JexlSandbox(false);
sandbox.allow("com.safe.Functions");
+ sandbox.allow(Math.class.getName());
features = new JexlFeatures()
.localVar(config.getBoolean(Keys.PROCESSING_COMPUTED_ATTRIBUTES_LOCAL_VARIABLES))
.loops(config.getBoolean(Keys.PROCESSING_COMPUTED_ATTRIBUTES_LOOPS))