aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-04 07:41:50 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-04 07:41:50 -0700
commit3fbdcd81566bc72e319ec05c77cf8a4120b87b8f (patch)
treebad540d1a97c33ac04aeecdc399ef8819543977b /src/main
parentfc3a24148526b3d41ba40ed1f55cf40b54c6a255 (diff)
downloadtrackermap-server-3fbdcd81566bc72e319ec05c77cf8a4120b87b8f.tar.gz
trackermap-server-3fbdcd81566bc72e319ec05c77cf8a4120b87b8f.tar.bz2
trackermap-server-3fbdcd81566bc72e319ec05c77cf8a4120b87b8f.zip
Update device id check
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/model/Device.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/model/Device.java b/src/main/java/org/traccar/model/Device.java
index a3088a613..c2da9be79 100644
--- a/src/main/java/org/traccar/model/Device.java
+++ b/src/main/java/org/traccar/model/Device.java
@@ -53,7 +53,7 @@ public class Device extends GroupedModel implements Disableable, Schedulable {
}
public void setUniqueId(String uniqueId) {
- if (uniqueId.contains("../") || uniqueId.contains("..\\")) {
+ if (uniqueId.contains("..")) {
throw new IllegalArgumentException("Invalid unique id");
}
this.uniqueId = uniqueId.trim();