mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
89d40ec4cd
commit
1f95df7feb
|
@ -81,6 +81,7 @@ import java.net.InetAddress;
|
|||
import java.net.UnknownHostException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
@ -916,11 +917,11 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
|||
String scheme = uri.getScheme();
|
||||
if ("https".equals(scheme)) {
|
||||
String host = uri.getHost();
|
||||
return (TextUtils.isEmpty(host) ? null : host);
|
||||
return (TextUtils.isEmpty(host) ? null : host.toLowerCase(Locale.ROOT));
|
||||
} else if ("mailto".equals(scheme)) {
|
||||
MailTo mailto = MailTo.parse(uri);
|
||||
String to = mailto.getTo();
|
||||
return (TextUtils.isEmpty(to) ? null : to);
|
||||
return (TextUtils.isEmpty(to) ? null : to.toLowerCase(Locale.ROOT));
|
||||
} else
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue