Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12623/functions
Modified Files:
ical_parser.php
Log Message:
fix bug 1190302 with provided patch
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.230
retrieving revision 1.231
diff -C2 -d -r1.230 -r1.231
*** ical_parser.php 26 Dec 2008 05:54:46 -0000 1.230
--- ical_parser.php 26 Dec 2008 09:11:52 -0000 1.231
***************
*** 413,419 ****
break;
case 'ATTENDEE':
! $field = str_replace("ATTENDEE;CN=", "", $field);
! $data = str_replace ("mailto:", "", $data);
! $attendee[] = array ('name' => stripslashes($field), 'email' => stripslashes($data));
break;
case 'ORGANIZER':
--- 413,421 ----
break;
case 'ATTENDEE':
! $attendee[] = array ('name' => ereg_replace ("ATTENDEE;CN=([^;]*).*", "\\1", $field),
! 'email' => ereg_replace (".*mailto:(.*).*", "\\1", $field),
! 'RSVP' => ereg_replace (".*RSVP=([^;]*).*", "\\1", $field),
! 'PARSTAT' => ereg_replace (".*PARTSTAT=([^;]*).*", "\\1", $field),
! 'ROLE' => ereg_replace (".*ROLE=([^;]*).*", "\\1", $field));
break;
case 'ORGANIZER':
|