Browse Source

fix format

master
neilpang 8 years ago
parent
commit
c3b1eb0837
  1. 132
      acme.sh

132
acme.sh

@ -369,205 +369,205 @@ _url_encode() {
for _hex_code in $_hex_str; do
#upper case
case "${_hex_code}" in
"41" )
"41")
printf "%s" "A"
;;
"42" )
"42")
printf "%s" "B"
;;
"43" )
"43")
printf "%s" "C"
;;
"44" )
"44")
printf "%s" "D"
;;
"45" )
"45")
printf "%s" "E"
;;
"46" )
"46")
printf "%s" "F"
;;
"47" )
"47")
printf "%s" "G"
;;
"48" )
"48")
printf "%s" "H"
;;
"49" )
"49")
printf "%s" "I"
;;
"4a" )
"4a")
printf "%s" "J"
;;
"4b" )
"4b")
printf "%s" "K"
;;
"4c" )
"4c")
printf "%s" "L"
;;
"4d" )
"4d")
printf "%s" "M"
;;
"4e" )
"4e")
printf "%s" "N"
;;
"4f" )
"4f")
printf "%s" "O"
;;
"50" )
"50")
printf "%s" "P"
;;
"51" )
"51")
printf "%s" "Q"
;;
"52" )
"52")
printf "%s" "R"
;;
"53" )
"53")
printf "%s" "S"
;;
"54" )
"54")
printf "%s" "T"
;;
"55" )
"55")
printf "%s" "U"
;;
"56" )
"56")
printf "%s" "V"
;;
"57" )
"57")
printf "%s" "W"
;;
"58" )
"58")
printf "%s" "X"
;;
"59" )
"59")
printf "%s" "Y"
;;
"5a" )
"5a")
printf "%s" "Z"
;;
#lower case
"61" )
"61")
printf "%s" "a"
;;
"62" )
"62")
printf "%s" "b"
;;
"63" )
"63")
printf "%s" "c"
;;
"64" )
"64")
printf "%s" "d"
;;
"65" )
"65")
printf "%s" "e"
;;
"66" )
"66")
printf "%s" "f"
;;
"67" )
"67")
printf "%s" "g"
;;
"68" )
"68")
printf "%s" "h"
;;
"69" )
"69")
printf "%s" "i"
;;
"6a" )
"6a")
printf "%s" "j"
;;
"6b" )
"6b")
printf "%s" "k"
;;
"6c" )
"6c")
printf "%s" "l"
;;
"6d" )
"6d")
printf "%s" "m"
;;
"6e" )
"6e")
printf "%s" "n"
;;
"6f" )
"6f")
printf "%s" "o"
;;
"70" )
"70")
printf "%s" "p"
;;
"71" )
"71")
printf "%s" "q"
;;
"72" )
"72")
printf "%s" "r"
;;
"73" )
"73")
printf "%s" "s"
;;
"74" )
"74")
printf "%s" "t"
;;
"75" )
"75")
printf "%s" "u"
;;
"76" )
"76")
printf "%s" "v"
;;
"77" )
"77")
printf "%s" "w"
;;
"78" )
"78")
printf "%s" "x"
;;
"79" )
"79")
printf "%s" "y"
;;
"7a" )
"7a")
printf "%s" "z"
;;
#numbers
"30" )
"30")
printf "%s" "0"
;;
"31" )
"31")
printf "%s" "1"
;;
"32" )
"32")
printf "%s" "2"
;;
"33" )
"33")
printf "%s" "3"
;;
"34" )
"34")
printf "%s" "4"
;;
"35" )
"35")
printf "%s" "5"
;;
"36" )
"36")
printf "%s" "6"
;;
"37" )
"37")
printf "%s" "7"
;;
"38" )
"38")
printf "%s" "8"
;;
"39" )
"39")
printf "%s" "9"
;;
"2d" )
"2d")
printf "%s" "-"
;;
"5f" )
"5f")
printf "%s" "_"
;;
"2e" )
"2e")
printf "%s" "."
;;
"7e" )
"7e")
printf "%s" "~"
;;
#other hex

Loading…
Cancel
Save