Plugin Directory

Changeset 2940432


Ignore:
Timestamp:
07/19/2023 02:57:18 PM (3 years ago)
Author:
hoernerfranz
Message:

tagging version 1.3.4

Location:
wp-caldav2ics
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • wp-caldav2ics/tags/1.3.4/Caldav2ics_Plugin.php

    r2877722 r2940432  
    366366                $l = 0;
    367367                $foundVCAL = false;
    368                 $handle = fopen($ICalFile, 'w') or die('Cannot open file:  '.$ICalFile); 
     368                //  $handle = fopen($ICalFile, 'w') or die('Cannot open file:  '.$ICalFile);  // moved, avoid empty $ICalFile in case server does not respond 26.04.23
    369369                               
    370370                foreach ($text as $line)   {
     
    377377                            if (strpos($line,'BEGIN:VCALENDAR') !== false)  {   // NOT $this->startswith ! 09.03.23
    378378                                // write VCALENDAR header only if valid VCALENDAR data found
     379                                $handle = fopen($ICalFile, 'w') or die('Cannot open file:  '.$ICalFile);  // moved here, JPGehrke 26.04.23
    379380                                fwrite($handle, 'BEGIN:VCALENDAR'."\r\n"); 
    380381                                fwrite($handle, 'VERSION:2.0'."\r\n");     
     
    396397                        fclose($loghandle);
    397398                    }
    398                     fclose($handle);
     399                    //  fclose($handle);    // $handle will now be invalid in this case 26.04.23
    399400                    return;
    400401                }
     
    427428                $found_ical_data = false;
    428429                foreach ($text as $line) {
    429                     $line = trim($line,"\n");   //mod. by J-P. Gehrke, original code was $line = trim($line)
     430                    // $line = trim($line,"\n");    //mod. by J-P. Gehrke, original code was $line = trim($line) - turns out to be prolematic, see below..
    430431                    /** This is important modification. The ics files from my CALDAV server contains info in long lines that are wrapped. By just "trimming" also leading spaces of the wrapped lines will
    431432                    * be eliminated. This creates problems using https://icalfilter.com reading the *.ics file. Therefore it is proposed useing the command "trim($line, "\n").
    432433                    */
    433                     //  $invalidLine = false;       //introduced by J-P. Gehrke, trigger for exclusion of X-TINE20-CONTAINER line in *.ics file, 17-NOV2022
    434                     //  $invalidLine is not really needed, use $skip as for other lines to discard WJ
    435434                   
     435                    $line = trim($line,"\n\r\t\v\x00"); // mod. 17.07.23 WJ, see https://wordpress.org/support/topic/converted-openxchange-calendar-subscibe-to-google-didnt-work/
     436
    436437                    if (strlen($line) > 0)  {
    437438                        $invalidLine = false;
  • wp-caldav2ics/tags/1.3.4/readme.txt

    r2877790 r2940432  
    8080
    8181== Changelog ==
     82= 1.3.4 =
     8319.07.23: fix wrong (insufficient) trim() Modification
     84
    8285= 1.3.3 =
    838609.03.23: do not stop ics Creation when no VTIMEZONE Block present in Server Response, check for BEGIN:VCALENDAR instead
  • wp-caldav2ics/tags/1.3.4/wp-caldav2ics.php

    r2877722 r2940432  
    33   Plugin Name: WP-CalDav2ICS
    44   Plugin URI: http://wordpress.org/extend/plugins/wp-caldav2ics/
    5    Version: 1.3.3
     5   Version: 1.3.4
    66   Author: Werner Joss
    77   Description: Create ICS File from CalDav Calendar
  • wp-caldav2ics/trunk/Caldav2ics_Plugin.php

    r2877722 r2940432  
    366366                $l = 0;
    367367                $foundVCAL = false;
    368                 $handle = fopen($ICalFile, 'w') or die('Cannot open file:  '.$ICalFile); 
     368                //  $handle = fopen($ICalFile, 'w') or die('Cannot open file:  '.$ICalFile);  // moved, avoid empty $ICalFile in case server does not respond 26.04.23
    369369                               
    370370                foreach ($text as $line)   {
     
    377377                            if (strpos($line,'BEGIN:VCALENDAR') !== false)  {   // NOT $this->startswith ! 09.03.23
    378378                                // write VCALENDAR header only if valid VCALENDAR data found
     379                                $handle = fopen($ICalFile, 'w') or die('Cannot open file:  '.$ICalFile);  // moved here, JPGehrke 26.04.23
    379380                                fwrite($handle, 'BEGIN:VCALENDAR'."\r\n"); 
    380381                                fwrite($handle, 'VERSION:2.0'."\r\n");     
     
    396397                        fclose($loghandle);
    397398                    }
    398                     fclose($handle);
     399                    //  fclose($handle);    // $handle will now be invalid in this case 26.04.23
    399400                    return;
    400401                }
     
    427428                $found_ical_data = false;
    428429                foreach ($text as $line) {
    429                     $line = trim($line,"\n");   //mod. by J-P. Gehrke, original code was $line = trim($line)
     430                    // $line = trim($line,"\n");    //mod. by J-P. Gehrke, original code was $line = trim($line) - turns out to be prolematic, see below..
    430431                    /** This is important modification. The ics files from my CALDAV server contains info in long lines that are wrapped. By just "trimming" also leading spaces of the wrapped lines will
    431432                    * be eliminated. This creates problems using https://icalfilter.com reading the *.ics file. Therefore it is proposed useing the command "trim($line, "\n").
    432433                    */
    433                     //  $invalidLine = false;       //introduced by J-P. Gehrke, trigger for exclusion of X-TINE20-CONTAINER line in *.ics file, 17-NOV2022
    434                     //  $invalidLine is not really needed, use $skip as for other lines to discard WJ
    435434                   
     435                    $line = trim($line,"\n\r\t\v\x00"); // mod. 17.07.23 WJ, see https://wordpress.org/support/topic/converted-openxchange-calendar-subscibe-to-google-didnt-work/
     436
    436437                    if (strlen($line) > 0)  {
    437438                        $invalidLine = false;
  • wp-caldav2ics/trunk/readme.txt

    r2877790 r2940432  
    8080
    8181== Changelog ==
     82= 1.3.4 =
     8319.07.23: fix wrong (insufficient) trim() Modification
     84
    8285= 1.3.3 =
    838609.03.23: do not stop ics Creation when no VTIMEZONE Block present in Server Response, check for BEGIN:VCALENDAR instead
  • wp-caldav2ics/trunk/wp-caldav2ics.php

    r2877722 r2940432  
    33   Plugin Name: WP-CalDav2ICS
    44   Plugin URI: http://wordpress.org/extend/plugins/wp-caldav2ics/
    5    Version: 1.3.3
     5   Version: 1.3.4
    66   Author: Werner Joss
    77   Description: Create ICS File from CalDav Calendar
Note: See TracChangeset for help on using the changeset viewer.