From a7476315d7df64be105dda6fbe292fb8ea0ebe64 Mon Sep 17 00:00:00 2001 From: sjau Date: Tue, 22 Nov 2016 18:28:03 +0100 Subject: [PATCH] Data submission failed because IFS was still set - fixed by unsetting IFS --- dnsapi/dns_ispconfig.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dnsapi/dns_ispconfig.sh b/dnsapi/dns_ispconfig.sh index 768d9fe3..9705db41 100755 --- a/dnsapi/dns_ispconfig.sh +++ b/dnsapi/dns_ispconfig.sh @@ -146,19 +146,18 @@ _ISPC_rmTxt() { record_id=$(echo "${i}" | _egrep_o "\"id.*" | cut -d ':' -f 2 | cut -d '"' -f 2) case "${record_id}" in '' | *[!0-9]*) - # Setting to debug only becase there's no harm if the txt record remains - _debug "Record ID is not numeric." + _err "Record ID is not numeric." return 1 ;; *) + unset IFS _info "Successfully retrieved Record ID" curData="{\"session_id\":\"${sessionID}\",\"primary_id\":\"${record_id}\"}" curResult="$(_post "${curData}" "${ISPC_Api}?dns_txt_delete")" if _contains "${curResult}" '"code":"ok"'; then _info "Successfully removed ACME challenge txt record." else - # Setting it to debug only because there's no harm if the txt record remains - _debug "Couldn't remove ACME challenge txt record." + _err "Couldn't remove ACME challenge txt record." return 1 fi ;;