mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:24:54 +00:00
Data submission failed because IFS was still set - fixed by unsetting IFS
This commit is contained in:
parent
18a955aa60
commit
ecc3de3462
@ -146,19 +146,18 @@ _ISPC_rmTxt() {
|
|||||||
record_id=$(echo "${i}" | _egrep_o "\"id.*" | cut -d ':' -f 2 | cut -d '"' -f 2)
|
record_id=$(echo "${i}" | _egrep_o "\"id.*" | cut -d ':' -f 2 | cut -d '"' -f 2)
|
||||||
case "${record_id}" in
|
case "${record_id}" in
|
||||||
'' | *[!0-9]*)
|
'' | *[!0-9]*)
|
||||||
# Setting to debug only becase there's no harm if the txt record remains
|
_err "Record ID is not numeric."
|
||||||
_debug "Record ID is not numeric."
|
|
||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
unset IFS
|
||||||
_info "Successfully retrieved Record ID"
|
_info "Successfully retrieved Record ID"
|
||||||
curData="{\"session_id\":\"${sessionID}\",\"primary_id\":\"${record_id}\"}"
|
curData="{\"session_id\":\"${sessionID}\",\"primary_id\":\"${record_id}\"}"
|
||||||
curResult="$(_post "${curData}" "${ISPC_Api}?dns_txt_delete")"
|
curResult="$(_post "${curData}" "${ISPC_Api}?dns_txt_delete")"
|
||||||
if _contains "${curResult}" '"code":"ok"'; then
|
if _contains "${curResult}" '"code":"ok"'; then
|
||||||
_info "Successfully removed ACME challenge txt record."
|
_info "Successfully removed ACME challenge txt record."
|
||||||
else
|
else
|
||||||
# Setting it to debug only because there's no harm if the txt record remains
|
_err "Couldn't remove ACME challenge txt record."
|
||||||
_debug "Couldn't remove ACME challenge txt record."
|
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user