Skip to content

Commit

Permalink
Update device id check
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Apr 4, 2024
1 parent fc3a241 commit 3fbdcd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/traccar/model/Device.java
Expand Up @@ -53,7 +53,7 @@ public String getUniqueId() {
}

public void setUniqueId(String uniqueId) {
if (uniqueId.contains("../") || uniqueId.contains("..\\")) {
if (uniqueId.contains("..")) {
throw new IllegalArgumentException("Invalid unique id");
}
this.uniqueId = uniqueId.trim();
Expand Down

0 comments on commit 3fbdcd8

Please sign in to comment.