From 6f896a057b7c5acc0a998e9b30f61862bfd2e6fb Mon Sep 17 00:00:00 2001 From: Dirk Date: Sun, 8 Oct 2017 22:03:29 +0200 Subject: [PATCH] add missing \n for html output --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 94b13b4..26e7936 100755 --- a/testssl.sh +++ b/testssl.sh @@ -402,8 +402,8 @@ safe_echo() { printf -- "%b" "${1//%/%%}"; } tm_out() { printf -- "%b" "${1//%/%%}"; } tmln_out() { printf -- "%b" "${1//%/%%}\n"; } -out() { printf -- "%b" "${1//%/%%}"; html_out "$1"; } -outln() { printf -- "%b" "${1//%/%%}\n"; html_out "$1"; } +out() { printf -- "%b" "${1//%/%%}"; html_out "$1"; } +outln() { printf -- "%b" "${1//%/%%}\n"; html_out "$1\n"; } #TODO: Still no shell injection safe but if just run it from the cmd line: that's fine