Caldav: workaround for broken items with \n as first line character

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1874 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-01-11 22:30:49 +00:00
parent bac0cf9fbf
commit 60f26c22ca
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ public class ICSBufferedReader extends BufferedReader {
nextLine = super.readLine();
while (nextLine != null && !(nextLine.length() == 0) &&
(nextLine.charAt(0) == ' ' || nextLine.charAt(0) == '\t'
// workaround for broken items with \n as first line character
|| nextLine.charAt(0) == '\\'
// workaround for Exchange 2010 bug
|| nextLine.charAt(0) == ':')) {
// Timezone ends with \n => next line starts with :