We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b76502 + 28687ad commit 3d8b682Copy full SHA for 3d8b682
dnsapi/dns_cloudns.sh
@@ -197,10 +197,11 @@ _dns_cloudns_http_api_call() {
197
auth_user="auth-id=$CLOUDNS_AUTH_ID"
198
fi
199
200
+ encoded_password=$(echo "$CLOUDNS_AUTH_PASSWORD" | tr -d "\n\r" | _url_encode)
201
if [ -z "$2" ]; then
- data="$auth_user&auth-password=$CLOUDNS_AUTH_PASSWORD"
202
+ data="$auth_user&auth-password=$encoded_password"
203
else
- data="$auth_user&auth-password=$CLOUDNS_AUTH_PASSWORD&$2"
204
+ data="$auth_user&auth-password=$encoded_password&$2"
205
206
207
response="$(_get "$CLOUDNS_API/$method?$data")"
0 commit comments