From f9a15564e2e9748bd990c5f1e3c31f7b2c4620c8 Mon Sep 17 00:00:00 2001 From: dpeca Date: Wed, 31 Oct 2018 17:07:01 +0100 Subject: [PATCH] Escaping quotas in JSON output of v-list-web-domain-ssl --- bin/v-list-web-domain-ssl | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/v-list-web-domain-ssl b/bin/v-list-web-domain-ssl index c91a7cca7..99fd5cf8b 100755 --- a/bin/v-list-web-domain-ssl +++ b/bin/v-list-web-domain-ssl @@ -19,6 +19,7 @@ source $VESTA/func/main.sh # JSON list function json_list() { + issuer=$(echo "$issuer" |sed -e 's/"/\\"/g' -e "s/%quote%/'/g") echo '{' echo -e "\t\"$domain\": {" echo " \"CRT\": \"$crt\","