projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
30b5594
)
take out 00-08 0A-1F and 9B characters and replace them with .
author
minima
<minima>
Tue, 17 Oct 2000 11:33:02 +0000
(11:33 +0000)
committer
minima
<minima>
Tue, 17 Oct 2000 11:33:02 +0000
(11:33 +0000)
perl/Msg.pm
patch
|
blob
|
history
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index 336ddf00e6e8f782904d7c1aa1f9740304191a25..d93de1b77313294c8defe064f124a52b9b797534 100644
(file)
--- 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;
}