svn path=/trunk/; revision=12
key="$(printf %s "$query" |sed -r 's:^([a-zA-Z0-9_-]+)=(.*)$:\1:')"
val="$(printf %s "$query" |sed -r 's:^([a-zA-Z0-9_-]+)=(.*)$:\2:')"
value="$(printf "$(printf %s "$val" |sed 's:+: :g;s:\\:\\\\:g;s:%:\\x:g;')")"
- if [ -n "${_POST[$key]}" ]; then
+ n=''
+ if [ -n "${_POST[$key$n]}" ]; then
n=0
while [ -n "${_POST[$key$n]}" ]; do n=$(($n + 1)); done
- _POST[$key$n]="$value"
- else
- _POST[$key]="$value"
fi
- debug "_POST[$key] => $value"
+ _POST[$key$n]="$value"
+ debug "_POST[$key$n] => $value"
done
}