WETOOP
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
5 deletions
-
deploy/cdn_ali.sh
|
|
|
@ -103,9 +103,8 @@ _ali_urlencode() { |
|
|
|
_str="$1" |
|
|
|
_str_length="${#1}" |
|
|
|
i=1 |
|
|
|
while [ "$i" -le "$_str_length" ] |
|
|
|
do |
|
|
|
_str_c="$(expr substr "$_str" "$i" 1)" |
|
|
|
while [ "$i" -le "$_str_length" ]; do |
|
|
|
_str_c="$(printf "%s" "$_str" | head -c "$i" | tail -c 1)" |
|
|
|
case $_str_c in |
|
|
|
[a-zA-Z0-9.~_-]) printf "%s" "$_str_c" ;; |
|
|
|
"") printf "%s" "%0A" ;; |
|
|
|
|