From 2e33c483dd2fa1dbbe4e6dfd5ea53710b092bae7 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Sun, 12 Mar 2023 14:52:11 +0100 Subject: [PATCH] remove comma in tr as it was interpreted as such --- testssl.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testssl.sh b/testssl.sh index 8d1bd711..5d4b98c8 100755 --- a/testssl.sh +++ b/testssl.sh @@ -555,15 +555,15 @@ html_out() { fi } -# Removes on printable chars in CSV, JSON, HTML, see #2330 +# Removes non-printable chars in CSV, JSON, HTML, see #2330 sanitize_fileout() { - tr -d '\000-\011,\013-\037' <<< "$1" + tr -d '\000-\011\013-\037' <<< "$1" } -# Removes on printable chars in terminal output (log files) -# We need to keep the icolor ANSI escape code, see #2330 +# Removes non-printable chars in terminal output (log files) +# We need to keep the color ANSI escape code x1b, o33, see #2330 sanitize_termout() { - tr -d '\000-\011,\013-\032,\034-\037' <<< "$1" + tr -d '\000-\011\013-\032\034-\037' <<< "$1" } # This is intentionally the same.