Forward porting fixes for iCal escaping and unescaping, and line wrapping.

This commit is contained in:
Colin Kuskie 2009-07-01 22:18:57 +00:00
parent 109178ac6a
commit c30614bdf6
5 changed files with 89 additions and 9 deletions

View file

@ -528,9 +528,17 @@ sub _icalToMySQL {
)->toMysql;
}
=head2 _unwrapIcalText
This really just unescapes iCal text, handling commas, semi-colons, backslashes
and newlines
=cut
sub _unwrapIcalText {
my $text = shift;
$text =~ s/\\([,;\\])/$1/g;
$text =~ s/\\n/\n/g;
return $text;
}