mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
Fix 3103349: Cannot login if display name contains [brackets], regression after first patch
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1527 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
eb6e224855
commit
974c8cf9cd
@ -2842,10 +2842,9 @@ public abstract class ExchangeSession {
|
||||
int start = line.toLowerCase().lastIndexOf(MAILBOX_BASE) + MAILBOX_BASE.length();
|
||||
int end = line.indexOf('<', start);
|
||||
alias = line.substring(start, end);
|
||||
start = line.lastIndexOf('[') + 1;
|
||||
end = line.lastIndexOf(']', start);
|
||||
end = line.lastIndexOf(']');
|
||||
start = line.lastIndexOf('[', end) + 1;
|
||||
email = line.substring(start, end);
|
||||
|
||||
}
|
||||
} catch (IOException e) {
|
||||
// restore cookies on error
|
||||
|
Loading…
Reference in New Issue
Block a user