Browse Source

code format

pull/410/head
lc 9 years ago
parent
commit
9ecfd8ed04
  1. 10
      dnsapi/dns_ali.sh

10
dnsapi/dns_ali.sh

@ -94,11 +94,11 @@ _ali_urlencode() {
while [ "$_h_i" -le "$_str_len" ]; do
_str_c="$(printf "%s" "$_str" | cut -c "$_h_i")"
case $_str_c in [a-zA-Z0-9.~_-])
printf "%s" "$_str_c"
;;
*)
printf "%%%02X" "'$_str_c"
;;
printf "%s" "$_str_c"
;;
*)
printf "%%%02X" "'$_str_c"
;;
esac
_h_i="$(_math "$_h_i" + 1)"
done

Loading…
Cancel
Save