mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
IMAP: fix LIST "" "" answer (StringIndexOutOfBoundsException)
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@371 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
6c067d47c7
commit
a76513ec59
@ -703,7 +703,11 @@ public class ExchangeSession {
|
||||
} else {
|
||||
int index = href.indexOf(mailPath.substring(0, mailPath.length() - 1));
|
||||
if (index >= 0) {
|
||||
folder.folderUrl = href.substring(index + mailPath.length());
|
||||
if (index + mailPath.length()>href.length()) {
|
||||
folder.folderUrl= "";
|
||||
} else {
|
||||
folder.folderUrl = href.substring(index + mailPath.length());
|
||||
}
|
||||
} else {
|
||||
throw new URIException("Invalid folder url: " + folder.folderUrl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user