mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
adding an array size check at Parser for .ics files
This commit is contained in:
@@ -21,6 +21,10 @@ class Parser {
|
||||
|
||||
for (part in parts) {
|
||||
val keyValue = part.split("=")
|
||||
if (keyValue.size <= 1) {
|
||||
continue
|
||||
}
|
||||
|
||||
val key = keyValue[0]
|
||||
val value = keyValue[1]
|
||||
if (key == FREQ) {
|
||||
|
Reference in New Issue
Block a user