Commit fff02881 authored by Bart Vullings's avatar Bart Vullings

ZP-1281 Fixed ':' not escaped when creating icalendar. Released under the...

ZP-1281 Fixed ':' not escaped when creating icalendar. Released under the Affero GNU General Public License (AGPL) version 3.
parent 09493d72
...@@ -292,7 +292,7 @@ class iCalProp { ...@@ -292,7 +292,7 @@ class iCalProp {
default: default:
$escaped = str_replace( '\\', '\\\\', $escaped); $escaped = str_replace( '\\', '\\\\', $escaped);
$escaped = preg_replace( '/\r?\n/', '\\n', $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() ); $property = sprintf( "%s%s:", $this->name, $this->RenderParameters() );
if ( (strlen($property) + strlen($escaped)) <= 72 ) { 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