1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-04 14:52:24 -05:00

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

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 :