Issue 3968: Fix missing api password encoding.

This commit is contained in:
Marcel Schlegel 2025-05-31 15:02:25 +02:00 committed by GitHub
parent 42bbd1b44a
commit 28687ad7c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,10 +197,11 @@ _dns_cloudns_http_api_call() {
auth_user="auth-id=$CLOUDNS_AUTH_ID" auth_user="auth-id=$CLOUDNS_AUTH_ID"
fi fi
encoded_password=$(echo "$CLOUDNS_AUTH_PASSWORD" | tr -d "\n\r" | _url_encode)
if [ -z "$2" ]; then if [ -z "$2" ]; then
data="$auth_user&auth-password=$CLOUDNS_AUTH_PASSWORD" data="$auth_user&auth-password=$encoded_password"
else else
data="$auth_user&auth-password=$CLOUDNS_AUTH_PASSWORD&$2" data="$auth_user&auth-password=$encoded_password&$2"
fi fi
response="$(_get "$CLOUDNS_API/$method?$data")" response="$(_get "$CLOUDNS_API/$method?$data")"