Browse Source

Change from echo to printf in _url_encode calls.

pull/557/head
David Kerr 8 years ago
parent
commit
5e9b65dc41
  1. 4
      dnsapi/dns_freedns.sh

4
dnsapi/dns_freedns.sh

@ -273,7 +273,7 @@ _freedns_login() {
_debug "Login to FreeDNS as user $username"
htmlpage="$(_post "username=$(echo "$username" | _url_encode)&password=$(echo "$password" | _url_encode)&submit=Login&action=auth" "$url")"
htmlpage="$(_post "username=$(printf '%s' "$username" | _url_encode)&password=$(printf '%s' "$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="$(echo "$4" | _url_encode)"
value="$(printf '%s' "$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")"

Loading…
Cancel
Save