Browse Source

fix word splitting

pull/2772/head
cxgreat2014 5 years ago
committed by GitHub
parent
commit
e4237092ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dnsapi/dns_ali.sh

6
dnsapi/dns_ali.sh

@ -310,7 +310,7 @@ _ali_url_encode(){
;; ;;
#other hex #other hex
*) *)
printf '%%%s' "$_hex_code" | tr '[a-z]' '[A-Z]'
printf '%%%s' "$_hex_code" | tr 'a-z' 'A-Z'
;; ;;
esac esac
done done
@ -348,7 +348,7 @@ _add_record_query() {
query='' query=''
query=$query'AccessKeyId='$Ali_Key query=$query'AccessKeyId='$Ali_Key
query=$query'&Action=AddDomainRecord' query=$query'&Action=AddDomainRecord'
query=$query'&DomainName='$(_ali_urlencode $1)
query=$query'&DomainName='$(_ali_urlencode "$1")
query=$query'&Format=json' query=$query'&Format=json'
query=$query'&RR='$2 query=$query'&RR='$2
query=$query'&SignatureMethod=HMAC-SHA1' query=$query'&SignatureMethod=HMAC-SHA1'
@ -377,7 +377,7 @@ _describe_records_query() {
query='' query=''
query=$query'AccessKeyId='$Ali_Key query=$query'AccessKeyId='$Ali_Key
query=$query'&Action=DescribeDomainRecords' query=$query'&Action=DescribeDomainRecords'
query=$query'&DomainName='$(_ali_urlencode $1)
query=$query'&DomainName='$(_ali_urlencode "$1")
query=$query'&Format=json' query=$query'&Format=json'
query=$query'&SignatureMethod=HMAC-SHA1' query=$query'&SignatureMethod=HMAC-SHA1'
query=$query"&SignatureNonce=$(_ali_nonce)" query=$query"&SignatureNonce=$(_ali_nonce)"

Loading…
Cancel
Save