rrule parser blows up when datetimes contain colons
Bug #1201543 reported by
Eric Casteleijn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This:
if line.find(':') != -1:
name, value = line.split(':')
if name != "RRULE":
else:
value = line
blows up when passed a string like this:
"DTSTART:
with ValueError, too many values to unpack.
This would fix it:
name, value = line.split(':', 1)
Related branches
lp:~thisfred/dateutil/fix-1201543
On hold
for merging
into
lp:dateutil
- Tomi Hukkalainen: Needs Information
-
Diff: 12 lines (+1/-1)1 file modifieddateutil/rrule.py (+1/-1)
To post a comment you must log in.
Are you sure this is even supposed to work? According to RFC 2445 4.3.4 and 4.3.12 the ical date times do not have colons. Not that this is different from ISO 8601.