Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added check if END:VCALENDAR appears before BEGIN:VCALENDAR in CalendarObject
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 17 Jan 2016 11:25:11 +0000 (11:25 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 17 Jan 2016 11:25:11 +0000 (11:25 +0000)
source/objects/calendarobject/CalendarObject.cpp

index 6ed8acd..6210b49 100644 (file)
@@ -182,7 +182,15 @@ CalendarObjectValidResult CalendarObject::ValidBaseObject(){
                        }
                                
                }
-                       
+               
+               if (ObjectName[SeekCount] == "END" &&
+                       ObjectData[SeekCount] == "VCALENDAR" &&
+                       ValidBegin == false){
+               
+                       return CALENDAROBJECTVALID_INVALIDFORMAT;
+                               
+               }
+               
                SeekCount++;
                        
        }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy