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':
|
||||
$organizer = array(
|
||||
'name' => $attr['params']['CN'],
|
||||
'email' => preg_replace('/^mailto:/', '', $attr['value']),
|
||||
'email' => preg_replace('/^mailto:/i', '', $attr['value']),
|
||||
'role' => 'ORGANIZER',
|
||||
'status' => 'ACCEPTED',
|
||||
);
|
||||
|
@ -179,7 +179,7 @@ class calendar_ical
|
|||
case 'ATTENDEE':
|
||||
$attendee = array(
|
||||
'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',
|
||||
'status' => $attr['params']['PARTSTAT'],
|
||||
'rsvp' => $attr['params']['RSVP'] == 'TRUE',
|
||||
|
|
Loading…
Add table
Reference in a new issue