Skip to content

Commit

Permalink
Merge pull request #5041 from j-c-m/ksh_openbsd_porkbun_fix
Browse files Browse the repository at this point in the history
Quote echo $data in _porkbun_rest (dns_porkbun)
  • Loading branch information
Neilpang authored Jun 15, 2024
2 parents a8f252e + 92d37f6 commit 58cad98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_porkbun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ _porkbun_rest() {
api_key_trimmed=$(echo "$PORKBUN_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\"}"

export _H1="Content-Type: application/json"
Expand Down

0 comments on commit 58cad98

Please sign in to comment.