mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-09 20:58:05 -05:00
Caldav: fix bug in VCalendar dtend check
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2254 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
affdaf3c76
commit
bd69676be5
@ -243,7 +243,7 @@ public class VCalendar extends VObject {
|
||||
dtStart.setParam("TZID", tzid);
|
||||
}
|
||||
VProperty dtEnd = vObject.getProperty("DTEND");
|
||||
if (dtEnd != null && dtStart.getParam("TZID") != null) {
|
||||
if (dtEnd != null && dtEnd.getParam("TZID") != null) {
|
||||
dtEnd.setParam("TZID", tzid);
|
||||
}
|
||||
VProperty reccurrenceId = vObject.getProperty("RECURRENCE-ID");
|
||||
@ -256,7 +256,7 @@ public class VCalendar extends VObject {
|
||||
List<String> toRemoveValues = null;
|
||||
List<String> values = vObject.getProperty("ATTACH").getValues();
|
||||
for (String value : values) {
|
||||
if (value.indexOf("CID:") >= 0) {
|
||||
if (value.contains("CID:")) {
|
||||
if (toRemoveValues == null) {
|
||||
toRemoveValues = new ArrayList<String>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user