Commit f06cb613 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #583 in ZP/z-push from...

Merge pull request #583 in ZP/z-push from bugfix/ZP-1281-not-escaped-when-creating-icalendar to develop

* commit 'fff02881':
  ZP-1281 Fixed ':' not escaped when creating icalendar. Released under the Affero GNU General Public License (AGPL) version 3.
parents cae91f88 fff02881
......@@ -292,7 +292,7 @@ class iCalProp {
default:
$escaped = str_replace( '\\', '\\\\', $escaped);
$escaped = preg_replace( '/\r?\n/', '\\n', $escaped);
$escaped = preg_replace( "/([,;])/", '\\\\$1', $escaped);
$escaped = preg_replace( "/([,;:])/", '\\\\$1', $escaped);
}
$property = sprintf( "%s%s:", $this->name, $this->RenderParameters() );
if ( (strlen($property) + strlen($escaped)) <= 72 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment