Caldav: ignore invalid BEGIN line inside object (Sogo Carddav issue)

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2200 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-12-12 21:31:26 +00:00
parent b714f8b01a
commit 1c1f82c588
1 changed files with 5 additions and 1 deletions

View File

@ -53,10 +53,14 @@ public class VObject {
throw new IOException("Invalid first line: " + beginProperty);
}
type = beginProperty.getValue();
String beginLine = "BEGIN:" + type;
String endLine = "END:" + type;
String line = reader.readLine();
while (line != null && !line.startsWith(endLine)) {
handleLine(line, reader);
// ignore invalid BEGIN line inside object (Sogo Carddav issue)
if (!beginLine.equals(line)) {
handleLine(line, reader);
}
line = reader.readLine();
}
if (line == null) {