mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Fix host name URIs
This commit is contained in:
@@ -567,6 +567,11 @@ public class FragmentIdentity extends FragmentBase {
|
||||
|
||||
boolean should = args.getBoolean("should");
|
||||
|
||||
if (host.contains(":")) {
|
||||
Uri h = Uri.parse(host);
|
||||
host = h.getHost();
|
||||
}
|
||||
|
||||
if (!should && TextUtils.isEmpty(name))
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_name));
|
||||
if (!should && TextUtils.isEmpty(email))
|
||||
|
||||
Reference in New Issue
Block a user