mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:17:41 +00:00
Change from echo to printf in _url_encode calls.
This commit is contained in:
parent
a045ba39d7
commit
5e9b65dc41
@ -273,7 +273,7 @@ _freedns_login() {
|
|||||||
|
|
||||||
_debug "Login to FreeDNS as user $username"
|
_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
|
if [ "$?" != "0" ]; then
|
||||||
_err "FreeDNS login failed for user $username bad RC from _post"
|
_err "FreeDNS login failed for user $username bad RC from _post"
|
||||||
@ -326,7 +326,7 @@ _freedns_add_txt_record() {
|
|||||||
export _H1="Cookie:$1"
|
export _H1="Cookie:$1"
|
||||||
domain_id="$2"
|
domain_id="$2"
|
||||||
subdomain="$3"
|
subdomain="$3"
|
||||||
value="$(echo "$4" | _url_encode)"
|
value="$(printf '%s' "$4" | _url_encode)"
|
||||||
url="http://freedns.afraid.org/subdomain/save.php?step=2"
|
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")"
|
htmlpage="$(_post "type=TXT&domain_id=$domain_id&subdomain=$subdomain&address=%22$value%22&send=Save%21" "$url")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user