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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Removes on printable chars in CSV, JSON, HTML, see #2330
|
# Removes non-printable chars in CSV, JSON, HTML, see #2330
|
||||||
sanitize_fileout() {
|
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)
|
# Removes non-printable chars in terminal output (log files)
|
||||||
# We need to keep the icolor ANSI escape code, see #2330
|
# We need to keep the color ANSI escape code x1b, o33, see #2330
|
||||||
sanitize_termout() {
|
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.
|
# This is intentionally the same.
|
||||||
|
|
Loading…
Reference in New Issue