Fix wrong newline replacement
This commit is contained in:
parent
2a983a6a7c
commit
885c6e6516
@ -427,9 +427,9 @@ function format_cal($format, $string)
|
|||||||
if ($format === "ical")
|
if ($format === "ical")
|
||||||
{
|
{
|
||||||
// Replace new lines chars by "\n"
|
// Replace new lines chars by "\n"
|
||||||
$newstring = preg_replace("/"."\r\n"."/i", "\n", $newstring);
|
$newstring = preg_replace("/"."\r\n"."/i", "\\n", $newstring);
|
||||||
$newstring = preg_replace("/"."\n\r"."/i", "\n", $newstring);
|
$newstring = preg_replace("/"."\n\r"."/i", "\\n", $newstring);
|
||||||
$newstring = preg_replace("/"."\n"."/i", "\n", $newstring);
|
$newstring = preg_replace("/"."\n"."/i", "\\n", $newstring);
|
||||||
|
|
||||||
// Must not exceed 75 char. Cut with "\r\n"+Space
|
// Must not exceed 75 char. Cut with "\r\n"+Space
|
||||||
$newstring = calEncode($newstring);
|
$newstring = calEncode($newstring);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user