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
master
mguessan 10 years ago
parent b714f8b01a
commit 1c1f82c588

@ -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) {

Loading…
Cancel
Save