Browse Source
Merge pull request #5041 from j-c-m/ksh_openbsd_porkbun_fix
Quote echo $data in _porkbun_rest (dns_porkbun)
pull/5183/head
neil
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_porkbun.sh
|
@ -139,7 +139,7 @@ _porkbun_rest() { |
|
|
api_key_trimmed=$(echo "$PORKBUN_API_KEY" | tr -d '"') |
|
|
api_key_trimmed=$(echo "$PORKBUN_API_KEY" | tr -d '"') |
|
|
secret_api_key_trimmed=$(echo "$PORKBUN_SECRET_API_KEY" | tr -d '"') |
|
|
secret_api_key_trimmed=$(echo "$PORKBUN_SECRET_API_KEY" | tr -d '"') |
|
|
|
|
|
|
|
|
test -z "$data" && data="{" || data="$(echo $data | cut -d'}' -f1)," |
|
|
|
|
|
|
|
|
test -z "$data" && data="{" || data="$(echo "$data" | cut -d'}' -f1)," |
|
|
data="$data\"apikey\":\"$api_key_trimmed\",\"secretapikey\":\"$secret_api_key_trimmed\"}" |
|
|
data="$data\"apikey\":\"$api_key_trimmed\",\"secretapikey\":\"$secret_api_key_trimmed\"}" |
|
|
|
|
|
|
|
|
export _H1="Content-Type: application/json" |
|
|
export _H1="Content-Type: application/json" |
|
|