From eec3ebbe5ed2598601a7b38f8e6d8791f047626d Mon Sep 17 00:00:00 2001 From: minima Date: Tue, 17 Oct 2000 11:33:02 +0000 Subject: [PATCH] take out 00-08 0A-1F and 9B characters and replace them with . --- perl/Msg.pm | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.43.0