Case-insensitive stripping of mailto: prefix
This commit is contained in:
parent
b19b61a3cf
commit
7aa1985905
1 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ class calendar_ical
|
||||||
case 'ORGANIZER':
|
case 'ORGANIZER':
|
||||||
$organizer = array(
|
$organizer = array(
|
||||||
'name' => $attr['params']['CN'],
|
'name' => $attr['params']['CN'],
|
||||||
'email' => preg_replace('/^mailto:/', '', $attr['value']),
|
'email' => preg_replace('/^mailto:/i', '', $attr['value']),
|
||||||
'role' => 'ORGANIZER',
|
'role' => 'ORGANIZER',
|
||||||
'status' => 'ACCEPTED',
|
'status' => 'ACCEPTED',
|
||||||
);
|
);
|
||||||
|
@ -179,7 +179,7 @@ class calendar_ical
|
||||||
case 'ATTENDEE':
|
case 'ATTENDEE':
|
||||||
$attendee = array(
|
$attendee = array(
|
||||||
'name' => $attr['params']['CN'],
|
'name' => $attr['params']['CN'],
|
||||||
'email' => preg_replace('/^mailto:/', '', $attr['value']),
|
'email' => preg_replace('/^mailto:/i', '', $attr['value']),
|
||||||
'role' => $attr['params']['ROLE'] ? $attr['params']['ROLE'] : 'REQ-PARTICIPANT',
|
'role' => $attr['params']['ROLE'] ? $attr['params']['ROLE'] : 'REQ-PARTICIPANT',
|
||||||
'status' => $attr['params']['PARTSTAT'],
|
'status' => $attr['params']['PARTSTAT'],
|
||||||
'rsvp' => $attr['params']['RSVP'] == 'TRUE',
|
'rsvp' => $attr['params']['RSVP'] == 'TRUE',
|
||||||
|
|
Loading…
Add table
Reference in a new issue