mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
Make sure we're storing the display JID as Unicode
This commit is contained in:
parent
e555fe4b03
commit
2222483b42
@ -108,11 +108,12 @@ public final class Jid {
|
|||||||
if (resourcepart.isEmpty() || resourcepart.length() > 1023) {
|
if (resourcepart.isEmpty() || resourcepart.length() > 1023) {
|
||||||
throw new InvalidJidException(InvalidJidException.INVALID_PART_LENGTH);
|
throw new InvalidJidException(InvalidJidException.INVALID_PART_LENGTH);
|
||||||
}
|
}
|
||||||
dp = jid.substring(domainpartStart, slashLoc);
|
dp = IDN.toUnicode(jid.substring(domainpartStart, slashLoc), IDN.USE_STD3_ASCII_RULES);
|
||||||
finaljid = finaljid + dp + "/" + rp;
|
finaljid = finaljid + dp + "/" + rp;
|
||||||
} else {
|
} else {
|
||||||
resourcepart = "";
|
resourcepart = "";
|
||||||
dp = jid.substring(domainpartStart, jid.length());
|
dp = IDN.toUnicode(jid.substring(domainpartStart, jid.length()),
|
||||||
|
IDN.USE_STD3_ASCII_RULES);
|
||||||
finaljid = finaljid + dp;
|
finaljid = finaljid + dp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user