|
@@ -251,7 +251,7 @@ function build_calfile($format, $title, $desc, $events_array, $outputfile)
|
|
|
}
|
|
|
|
|
|
fwrite($calfileh, "DTEND".$prefix.":".$enddatef."\n");
|
|
|
- fwrite($calfileh, "STATUS:CONFIRMED"."\n");
|
|
|
+ fwrite($calfileh, "STATUS:CONFIRMED\n");
|
|
|
|
|
|
if (!empty($transparency))
|
|
|
{
|
|
@@ -295,7 +295,7 @@ function build_calfile($format, $title, $desc, $events_array, $outputfile)
|
|
|
|
|
|
fwrite($calfileh, "SUMMARY:".$encoding.$summary."\n");
|
|
|
fwrite($calfileh, "DESCRIPTION:".$encoding.$description."\n");
|
|
|
- fwrite($calfileh, "STATUS:CONFIRMED"."\n");
|
|
|
+ fwrite($calfileh, "STATUS:CONFIRMED\n");
|
|
|
fwrite($calfileh, "CATEGORIES:".$category."\n");
|
|
|
fwrite($calfileh, "LOCATION:".$location."\n");
|
|
|
fwrite($calfileh, "TRANSP:OPAQUE\n");
|
|
@@ -381,7 +381,7 @@ function build_rssfile($format, $title, $desc, $events_array, $outputfile, $filt
|
|
|
$url = $urlwithroot."/public/agenda/agendaexport.php?format=rss&exportkey=".urlencode($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY);
|
|
|
}
|
|
|
|
|
|
- fwrite($fichier, "<link><![CDATA[".$url."]]></link>"."\n");
|
|
|
+ fwrite($fichier, "<link><![CDATA[".$url."]]></link>\n");
|
|
|
|
|
|
foreach ($events_array as $key => $event)
|
|
|
{
|
|
@@ -480,9 +480,9 @@ function format_cal($format, $string)
|
|
|
if ($format === "ical")
|
|
|
{
|
|
|
// Replace new lines chars by "\n"
|
|
|
- $newstring = preg_replace("/"."\r\n"."/i", "\\n", $newstring);
|
|
|
- $newstring = preg_replace("/"."\n\r"."/i", "\\n", $newstring);
|
|
|
- $newstring = preg_replace("/"."\n"."/i", "\\n", $newstring);
|
|
|
+ $newstring = preg_replace("/\r\n/i", "\\n", $newstring);
|
|
|
+ $newstring = preg_replace("/\n\r/i", "\\n", $newstring);
|
|
|
+ $newstring = preg_replace("/\n/i", "\\n", $newstring);
|
|
|
|
|
|
// Must not exceed 75 char. Cut with "\r\n"+Space
|
|
|
$newstring = calEncode($newstring);
|
|
@@ -586,7 +586,7 @@ function quotedPrintEncode($str, $forcal = 0)
|
|
|
if ((strlen($newpara) + strlen($char)) >= 76)
|
|
|
{
|
|
|
// New line with carray-return (CR) and line-feed (LF)
|
|
|
- $out .= $newpara."="."\r\n";
|
|
|
+ $out .= $newpara."=\r\n";
|
|
|
|
|
|
// extra space for cal
|
|
|
if ($forcal)
|