diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-10 16:10:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-10 16:10:57 +1300 |
commit | d1f6d1ab58e82c7854cb569554f7626be10f7baf (patch) | |
tree | f430345b55f3cdcdf074cf4ab90d01fea55fdcab /src/org/traccar/sms | |
parent | 84b7b8c28d0a8a19fc1283dd4d3509c0295d8c3d (diff) | |
download | trackermap-server-d1f6d1ab58e82c7854cb569554f7626be10f7baf.tar.gz trackermap-server-d1f6d1ab58e82c7854cb569554f7626be10f7baf.tar.bz2 trackermap-server-d1f6d1ab58e82c7854cb569554f7626be10f7baf.zip |
Fix some FindBugs issues
Diffstat (limited to 'src/org/traccar/sms')
-rw-r--r-- | src/org/traccar/sms/HttpSmsClient.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/sms/HttpSmsClient.java b/src/org/traccar/sms/HttpSmsClient.java index 3f7bc3c85..994e2db4e 100644 --- a/src/org/traccar/sms/HttpSmsClient.java +++ b/src/org/traccar/sms/HttpSmsClient.java @@ -49,7 +49,8 @@ public class HttpSmsClient implements SmsManager { if (authorization == null) { String user = Context.getConfig().getString("sms.http.user"); String password = Context.getConfig().getString("sms.http.password"); - authorization = "Basic " + DataConverter.printBase64((user + ":" + password).getBytes()); + authorization = "Basic " + + DataConverter.printBase64((user + ":" + password).getBytes(StandardCharsets.UTF_8)); } template = Context.getConfig().getString("sms.http.template").trim(); if (template.charAt(0) == '{' || template.charAt(0) == '[') { |