aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-21 16:09:44 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-21 16:09:44 +1200
commita92dc851b8c8cd9d2506adecd21f708a8313ce17 (patch)
tree6199b90372f4a33a90d6d2b84cd8b10448001cbd /src/org/traccar
parentec01f2eca0a0a5ce8b8b815ba96da0a80c53ab99 (diff)
downloadtrackermap-server-a92dc851b8c8cd9d2506adecd21f708a8313ce17.tar.gz
trackermap-server-a92dc851b8c8cd9d2506adecd21f708a8313ce17.tar.bz2
trackermap-server-a92dc851b8c8cd9d2506adecd21f708a8313ce17.zip
Fix issue with web data handler
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/WebDataHandler.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index fce73c816..5e3626022 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -63,12 +63,12 @@ public class WebDataHandler extends BaseDataHandler {
Device device = Context.getIdentityManager().getDeviceById(position.getDeviceId());
String request = url.
- replaceAll("\\{uniqueId}", device.getUniqueId()).
- replaceAll("\\{deviceId}", String.valueOf(device.getId())).
- replaceAll("\\{fixTime}", String.valueOf(position.getFixTime().getTime())).
- replaceAll("\\{latitude}", String.valueOf(position.getLatitude())).
- replaceAll("\\{longitude}", String.valueOf(position.getLongitude())).
- replaceAll("\\{gprmc}", formatSentence(position));
+ replace("{uniqueId}", device.getUniqueId()).
+ replace("{deviceId}", String.valueOf(device.getId())).
+ replace("{fixTime}", String.valueOf(position.getFixTime().getTime())).
+ replace("{latitude}", String.valueOf(position.getLatitude())).
+ replace("{longitude}", String.valueOf(position.getLongitude())).
+ replace("{gprmc}", formatSentence(position));
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
asyncHttpClient.prepareGet(request).execute();