wok-current rev 9585
busybox/httpd_helper: decode arguments
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 12 18:51:12 2011 +0200 (2011-04-12) |
parents | 06528d0615fa |
children | 598224053c16 |
files | busybox/stuff/httpd_helper.sh |
line diff
1.1 --- a/busybox/stuff/httpd_helper.sh Tue Apr 12 12:16:41 2011 +0000 1.2 +++ b/busybox/stuff/httpd_helper.sh Tue Apr 12 18:51:12 2011 +0200 1.3 @@ -22,17 +22,17 @@ 1.4 1.5 GET() 1.6 { 1.7 -[ -z "$1" ] && echo $GET__NAMES || [ -n "$GET__NAMES" ] && eval echo \$GET_$1 1.8 +[ -z "$1" ] && echo $GET__NAMES || [ -n "$GET__NAMES" ] && eval httpd -d \$GET_$1 1.9 } 1.10 1.11 POST() 1.12 { 1.13 -[ -z "$1" ] && echo $POST__NAMES || [ -n "$POST__NAMES" ] && eval echo \$POST_$1 1.14 +[ -z "$1" ] && echo $POST__NAMES || [ -n "$POST__NAMES" ] && eval httpd -d \$POST_$1 1.15 } 1.16 1.17 FILE() 1.18 { 1.19 -[ -z "$1" ] && echo $FILE__NAMES || [ -n "$FILE__NAMES" ] && eval echo \$FILE_${1}_$2 1.20 +[ -z "$1" ] && echo $FILE__NAMES || [ -n "$FILE__NAMES" ] && eval httpd -d \$FILE_${1}_$2 1.21 } 1.22 1.23 httpinfo()