Merge pull request #2005 from drwetter/fix_1992_certificateIssuerName

Fix invalid JSON when certificate issuer contains non-ASCII chars
This commit is contained in:
Dirk Wetter 2021-10-03 19:52:35 +02:00 committed by GitHub
commit d720720150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@ fileout_json_print_parameter() {
spaces=" " || \ spaces=" " || \
spaces=" " spaces=" "
if [[ -n "$value" ]] || [[ "$parameter" == finding ]]; then if [[ -n "$value" ]] || [[ "$parameter" == finding ]]; then
printf "%s%s%s%s" "$spaces" "\"$parameter\"" "$filler" ": \"$value\"" >> "$JSONFILE" printf -- "%b%b%b%b" "$spaces" "\"$parameter\"" "$filler" ": \"$value\"" >> "$JSONFILE"
"$not_last" && printf ",\n" >> "$JSONFILE" "$not_last" && printf ",\n" >> "$JSONFILE"
fi fi
} }