From 6d1d74a7a4f9abc2b53faf57419afecae8397d00 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 24 Sep 2019 15:53:32 -0400 Subject: [PATCH] Fix #1328 This PR fixes #1328 by removing any '\r' characters that appear in the command line read from the file provided to the `--file` option. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 0e81678..ff75faa 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1490,7 +1490,7 @@ tmpfile_handle() { # arg1: line with comment sign, tabs and so on filter_input() { - sed -e 's/#.*$//' -e '/^$/d' <<< "$1" | tr -d '\n' | tr -d '\t' + sed -e 's/#.*$//' -e '/^$/d' <<< "$1" | tr -d '\n' | tr -d '\t' | tr -d '\r' } # Dl's any URL (arg1) via HTTP 1.1 GET from port 80, arg2: file to store http body.