escaped all control characters, not just line feed

This commit is contained in:
Max Baker
2003-07-02 19:24:49 +00:00
parent 3d812e0eae
commit 39e618f761

View File

@@ -85,7 +85,7 @@ sub test_global {
if ($@){
my $err = $@;
$err =~ s/\n/ /g;
$err =~ s/[[:cntrl:]]+/ /g;
printf "%-20s Blew up. $err\n",$method;
return 0;
}
@@ -94,7 +94,7 @@ sub test_global {
printf "%-20s Does not exist.\n",$method;
return 0;
}
$value =~ s/\n/ /g;
$value =~ s/[[:cntrl:]]+/ /g;
if (length $value > 60) {
$value = substr($value,0,60);
$value .= '...';