mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
remove comma in tr as it was interpreted as such
This commit is contained in:
parent
fab67d0cca
commit
2e33c483dd
10
testssl.sh
10
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.
|
||||
|
Loading…
Reference in New Issue
Block a user