Skip to content

Commit 58cad98

Browse files
authored
Merge pull request #5041 from j-c-m/ksh_openbsd_porkbun_fix
Quote echo $data in _porkbun_rest (dns_porkbun)
2 parents a8f252e + 92d37f6 commit 58cad98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dnsapi/dns_porkbun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ _porkbun_rest() {
139139
api_key_trimmed=$(echo "$PORKBUN_API_KEY" | tr -d '"')
140140
secret_api_key_trimmed=$(echo "$PORKBUN_SECRET_API_KEY" | tr -d '"')
141141

142-
test -z "$data" && data="{" || data="$(echo $data | cut -d'}' -f1),"
142+
test -z "$data" && data="{" || data="$(echo "$data" | cut -d'}' -f1),"
143143
data="$data\"apikey\":\"$api_key_trimmed\",\"secretapikey\":\"$secret_api_key_trimmed\"}"
144144

145145
export _H1="Content-Type: application/json"

0 commit comments

Comments
 (0)