mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
Caldav: check Depth before search
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1731 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
d5e669f7de
commit
a5d856f819
@ -608,6 +608,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
List<ExchangeSession.Contact> contacts = null;
|
||||
List<ExchangeSession.Event> events = null;
|
||||
List<ExchangeSession.Folder> folderList = null;
|
||||
if (request.getDepth() == 1) {
|
||||
if (folder.isContact()) {
|
||||
contacts = session.getAllContacts(folderPath);
|
||||
} else if (folder.isCalendar()) {
|
||||
@ -616,6 +617,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
folderList = session.getSubCalendarFolders(folderPath, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CaldavResponse response = new CaldavResponse(HttpStatus.SC_MULTI_STATUS);
|
||||
response.startMultistatus();
|
||||
|
Loading…
Reference in New Issue
Block a user