svn path=/trunk/; revision=38
# parse HTTP POST string
debug "== CGI DATA: POST =="
head -c "$HTTP_CONTENT_LENGTH" \
# parse HTTP POST string
debug "== CGI DATA: POST =="
head -c "$HTTP_CONTENT_LENGTH" \
- | sed -un '
- 2q
- 1{
- s;&;\n;g;
- a
- p
- }' \
+ | sed -un 's;&;\n;g; p; q' \
| while read query; do
key="$(printf %s "$query" |sed -r 's:^([\.a-zA-Z0-9_-]+)=(.*)$:\1:')"
val="$(printf %s "$query" |sed -r 's:^([\.a-zA-Z0-9_-]+)=(.*)$:\2:')"
| while read query; do
key="$(printf %s "$query" |sed -r 's:^([\.a-zA-Z0-9_-]+)=(.*)$:\1:')"
val="$(printf %s "$query" |sed -r 's:^([\.a-zA-Z0-9_-]+)=(.*)$:\2:')"