1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Use https as default scheme

This commit is contained in:
M66B 2021-09-02 18:32:42 +02:00
parent fc85dd8314
commit d262fbaa69

View file

@ -150,12 +150,9 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
else {
Uri g = Uri.parse(URLUtil.guessUrl(url));
String scheme = g.getScheme();
if (scheme != null) {
if ("http".equals(scheme))
scheme = "https";
uri = Uri.parse(scheme + "://" + _uri.toString());
} else
uri = _uri;
if (scheme == null || "http".equals(scheme))
scheme = "https";
uri = Uri.parse(scheme + "://" + _uri.toString());
}
} else
uri = _uri;