From a045ba39d7a8d7a6578d369444982a757eab19e3 Mon Sep 17 00:00:00 2001 From: David Kerr Date: Tue, 31 Jan 2017 22:48:35 -0500 Subject: [PATCH] Fix calls to _url_encode --- dnsapi/dns_freedns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_freedns.sh b/dnsapi/dns_freedns.sh index e6bc995c..c595a3d6 100755 --- a/dnsapi/dns_freedns.sh +++ b/dnsapi/dns_freedns.sh @@ -273,7 +273,7 @@ _freedns_login() { _debug "Login to FreeDNS as user $username" - htmlpage="$(_post "username=$(_url_encode "$username")&password=$(_url_encode "$password")&submit=Login&action=auth" "$url")" + htmlpage="$(_post "username=$(echo "$username" | _url_encode)&password=$(echo "$password" | _url_encode)&submit=Login&action=auth" "$url")" if [ "$?" != "0" ]; then _err "FreeDNS login failed for user $username bad RC from _post" @@ -326,7 +326,7 @@ _freedns_add_txt_record() { export _H1="Cookie:$1" domain_id="$2" subdomain="$3" - value="$(_url_encode "$4")" + value="$(echo "$4" | _url_encode)" url="http://freedns.afraid.org/subdomain/save.php?step=2" htmlpage="$(_post "type=TXT&domain_id=$domain_id&subdomain=$subdomain&address=%22$value%22&send=Save%21" "$url")"