diff --git a/dnsapi/dns_baidu.sh b/dnsapi/dns_baidu.sh index dfad8eeb..19641006 100644 --- a/dnsapi/dns_baidu.sh +++ b/dnsapi/dns_baidu.sh @@ -120,7 +120,7 @@ _baidu_run_with_fallback() { } _baidu_engine_order() { - _pref="$(_lower_case "$(_baidu_trim_ws "${Baidu_API_Preference:-auto}")")" + _pref="$(_baidu_trim_ws "${Baidu_API_Preference:-auto}" | _lower_case)" case "$_pref" in legacy) printf "%s" "legacy new" diff --git a/dnsapi/dns_bhosted.sh b/dnsapi/dns_bhosted.sh index 46ddd5dd..31da0099 100644 --- a/dnsapi/dns_bhosted.sh +++ b/dnsapi/dns_bhosted.sh @@ -283,7 +283,7 @@ _bhosted_response_has_error() { fi # Fallback for unexpected/non-XML responses - _resp_lc="$(_lower_case "$_resp")" + _resp_lc="$(printf "%s\n" "$_resp" | _lower_case)" if _contains "$_resp_lc" "error"; then _debug "Detected 'error' in response"