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