X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=f4f013beeb0f659417c84cd8750ccc963a8c9348;hb=4c81b3f1cd138370d5ca232d95a5b2793bc22c88;hp=0af6791156f92b8c8e9698707fca33202ff3ae18;hpb=2c3a20bdcef84e620b0c3c2d306a71ebe17956b0;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index 0af67911..f4f013be 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -237,7 +237,8 @@ FINISH: while (@lines){ $msg = shift @lines; - $msg =~ s/%([2-9A-F][0-9A-F])/chr(hex($1))/eg; + $msg =~ s/\%([2-9A-F][0-9A-F])/chr(hex($1))/eg; + $msg =~ s/[\x00-\x08\x0a-\x1f\x80-\x9f]/./g; # immutable CSI sequence + control characters &{$conn->{rcvd_notification_proc}}($conn, $msg, $!); $! = 0; }