From: minima Date: Tue, 17 Oct 2000 11:33:02 +0000 (+0000) Subject: take out 00-08 0A-1F and 9B characters and replace them with . X-Git-Tag: R_1_45~93 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=eec3ebbe5ed2598601a7b38f8e6d8791f047626d;p=spider.git take out 00-08 0A-1F and 9B characters and replace them with . --- diff --git a/perl/Msg.pm b/perl/Msg.pm index 336ddf00..d93de1b7 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -238,6 +238,7 @@ FINISH: while (@lines){ $msg = shift @lines; $msg =~ s/\%([2-9A-F][0-9A-F])/chr(hex($1))/eg; + $msg =~ s/[\x00-\x08\x0a-\x1f\x9b]/./g; # immutable CSI sequence + control characters &{$conn->{rcvd_notification_proc}}($conn, $msg, $!); $! = 0; }