code format

This commit is contained in:
lc 2016-11-23 12:19:13 +08:00
parent be71ae4650
commit 9ecfd8ed04

View File

@ -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