mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-02 06:33:38 +01:00
Fix implicit locale string formatting bugs
Depending on the phone language the default format may use Arabic numerals, etc. when not desired. Bug: fixes #7006 Closes #7040
This commit is contained in:
committed by
Moxie Marlinspike
parent
9a876a3672
commit
eb456ef2b0
@@ -25,6 +25,7 @@ import java.net.SocketException;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.net.UnknownHostException;
|
||||
import java.security.MessageDigest;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.StringTokenizer;
|
||||
@@ -63,7 +64,7 @@ public class AttachmentServer implements Runnable {
|
||||
}
|
||||
|
||||
public Uri getUri() {
|
||||
return Uri.parse(String.format("http://127.0.0.1:%d/%s", port, auth));
|
||||
return Uri.parse(String.format(Locale.ROOT, "http://127.0.0.1:%d/%s", port, auth));
|
||||
}
|
||||
|
||||
public void start() {
|
||||
|
||||
Reference in New Issue
Block a user