]> dxcluster.org Git - spider.git/commitdiff
take out 00-08 0A-1F and 9B characters and replace them with .
authorminima <minima>
Tue, 17 Oct 2000 11:33:02 +0000 (11:33 +0000)
committerminima <minima>
Tue, 17 Oct 2000 11:33:02 +0000 (11:33 +0000)
perl/Msg.pm

index 336ddf00e6e8f782904d7c1aa1f9740304191a25..d93de1b77313294c8defe064f124a52b9b797534 100644 (file)
@@ -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;
        }