diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-04 07:41:50 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-04 07:41:50 -0700 |
commit | 3fbdcd81566bc72e319ec05c77cf8a4120b87b8f (patch) | |
tree | bad540d1a97c33ac04aeecdc399ef8819543977b /src/main/java/org/traccar | |
parent | fc3a24148526b3d41ba40ed1f55cf40b54c6a255 (diff) | |
download | trackermap-server-3fbdcd81566bc72e319ec05c77cf8a4120b87b8f.tar.gz trackermap-server-3fbdcd81566bc72e319ec05c77cf8a4120b87b8f.tar.bz2 trackermap-server-3fbdcd81566bc72e319ec05c77cf8a4120b87b8f.zip |
Update device id check
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/model/Device.java | 2 |
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(); |