# HG changeset patch # User Pascal Bellard # Date 1301787845 -7200 # Node ID 0d51ad76068644ac1dce6c813e3006211a9417cb # Parent 0c9dab57bef3ca92a0f454419a86c81cc61c51d5 busybox/httpd_helper.sh: do not loose last POST diff -r 0c9dab57bef3 -r 0d51ad760686 busybox/stuff/httpd_helper.sh --- a/busybox/stuff/httpd_helper.sh Sun Apr 03 00:17:32 2011 +0200 +++ b/busybox/stuff/httpd_helper.sh Sun Apr 03 01:44:05 2011 +0200 @@ -106,7 +106,7 @@ cat > ${post}0 read delim < ${post}0 case "$delim" in - -*) awk "/$delim/ { o+=index(\$0,\"$delim\")-1; print o } + -*) awk "/${delim%?}/ { o+=index(\$0,\"$delim\")-1; print o } { o+=1+length() }" < ${post}0 | while read offset; do if [ $offset -ne 0 ]; then ddcut $last $offset < ${post}0 > $post$n 2> /dev/null