mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-07 03:38:05 -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);
|
throw new IOException("Invalid first line: " + beginProperty);
|
||||||
}
|
}
|
||||||
type = beginProperty.getValue();
|
type = beginProperty.getValue();
|
||||||
|
String beginLine = "BEGIN:" + type;
|
||||||
String endLine = "END:" + type;
|
String endLine = "END:" + type;
|
||||||
String line = reader.readLine();
|
String line = reader.readLine();
|
||||||
while (line != null && !line.startsWith(endLine)) {
|
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();
|
line = reader.readLine();
|
||||||
}
|
}
|
||||||
if (line == null) {
|
if (line == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user