Forward porting fixes for iCal escaping and unescaping, and line wrapping.
This commit is contained in:
parent
109178ac6a
commit
c30614bdf6
5 changed files with 89 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue