aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();