Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
date_ical
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
drupal.org
date_ical
Commits
dcf73cd6
Commit
dcf73cd6
authored
Feb 20, 2014
by
Robert Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #2199885: Worked around a bug in iCalcreator that invalidates "0" as a UID.
parent
3e49afa1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
includes/DateiCalFeedsParser.inc
includes/DateiCalFeedsParser.inc
+5
-0
No files found.
includes/DateiCalFeedsParser.inc
View file @
dcf73cd6
...
...
@@ -34,6 +34,11 @@ class DateiCalFeedsParser extends FeedsParser {
throw
new
DateIcalException
(
t
(
'Parsing the data from %url failed. Please ensure that this URL leads to a valid iCal feed.'
,
array
(
'%url'
=>
$url
)));
}
// Total hack to get around iCalcreator's mistreatment of UID "0".
if
(
empty
(
$calendar
->
components
[
0
]
->
uid
)
||
empty
(
$calendar
->
components
[
0
]
->
uid
[
'value'
]))
{
$calendar
->
components
[
0
]
->
uid
=
array
(
'value'
=>
'zero'
,
'params'
=>
NULL
);
}
// Allow modules to alter the vcalendar object before we interpret it.
$context
=
array
(
'source'
=>
$source
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment