mirror of https://github.com/M66B/FairEmail.git
Root domain fix
This commit is contained in:
parent
4a51f866e6
commit
63a4585592
|
@ -102,12 +102,12 @@ public class UriHelper {
|
|||
String tld = getTld(context, host);
|
||||
if (tld == null)
|
||||
return null;
|
||||
if (tld.equals(host))
|
||||
if (tld.equalsIgnoreCase(host))
|
||||
return null;
|
||||
int len = host.length() - tld.length() - 1;
|
||||
if (len < 0) {
|
||||
Log.e("getRootDomain host=" + host + " tld=" + tld);
|
||||
return host;
|
||||
return null;
|
||||
}
|
||||
int dot = host.substring(0, len).lastIndexOf('.');
|
||||
if (dot < 0)
|
||||
|
|
Loading…
Reference in New Issue