Subject: | Net-RMI does not handle CR/LF |
I am using Net::RMI version 0.02, under Linux 2.2.19 and SunOS 5.7
with perl 5.6.0 and 5.6.1.
I found out that the module does not handle CR\LF when serializing
strings.
74a75
> $data =~ s/\n/\\n/;
80c81,82
< my $length = length($$data);
---
> $$data =~ s/\n/\\n/;
> my $length = length($$data);
131c133
< while (($found < $limit) && ($data =~ /^([SAH])\[(\d+)\](.+$)/)) {
---
> while (($found < $limit) && ($data =~ /^([SAH])\[(\d+)\](((.+)(\n*))*)/)) {
138a141
> $value =~ s/\\n/\n/;