aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/CopyAttributesHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-12 03:06:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-12 02:06:42 +1300
commitbf3db6b69ebe36038232fee0de93f7cfbfea45a1 (patch)
tree2d3d280b82460732e9bb2c95f16ac9f2220d180a /src/org/traccar/CopyAttributesHandler.java
parentca8397232467ca70db44b3b3b089409f7e9ee21a (diff)
downloadtrackermap-server-bf3db6b69ebe36038232fee0de93f7cfbfea45a1.tar.gz
trackermap-server-bf3db6b69ebe36038232fee0de93f7cfbfea45a1.tar.bz2
trackermap-server-bf3db6b69ebe36038232fee0de93f7cfbfea45a1.zip
Config option for non-persistent protocols (fix #2100)
Diffstat (limited to 'src/org/traccar/CopyAttributesHandler.java')
-rw-r--r--src/org/traccar/CopyAttributesHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/CopyAttributesHandler.java b/src/org/traccar/CopyAttributesHandler.java
index f6326ea84..18052d0ea 100644
--- a/src/org/traccar/CopyAttributesHandler.java
+++ b/src/org/traccar/CopyAttributesHandler.java
@@ -33,7 +33,7 @@ public class CopyAttributesHandler extends BaseDataHandler {
position.getDeviceId(), "processing.copyAttributes", null, true);
Position last = getLastPosition(position.getDeviceId());
if (attributesString != null && last != null) {
- for (String attribute : attributesString.split(" ")) {
+ for (String attribute : attributesString.split("[ ,]")) {
if (last.getAttributes().containsKey(attribute) && !position.getAttributes().containsKey(attribute)) {
position.getAttributes().put(attribute, last.getAttributes().get(attribute));
}