mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
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:
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…
Reference in New Issue
Block a user