| @@ -105,9 +105,9 @@ | ||
| 105 | 105 | if ( false === strpos( $ics_content, 'VEVENT' ) ) { |
| 106 | 106 | return new WP_Error( 'wpbm_ics_error', '<strong>[WPBM Error]</strong> ' . __( 'File does not contain events' ) . ' ' , 'wrong_ics_content' ); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - | |
| 109 | + $ics_content = trim($ics_content); //FixIn: 2.1.9.2 | |
| 110 | 110 | $icalobj = new ZCiCal( $ics_content ); // create the ical object |
| 111 | 111 | |
| 112 | 112 | |
| 113 | 113 | $events_count = 0; |