svn path=/trunk/; revision=21
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;')")"
n=''
- if [ -n "${_POST[$key$n]}" ]; then
+ if [ -n "${_POST[$key$n]+x}" ]; then
n=0
- while [ -n "${_POST[$key$n]}" ]; do n=$(($n + 1)); done
+ while [ -n "${_POST[$key$n]+x}" ]; do n=$(($n + 1)); done
fi
_POST[$key$n]="$value"
debug "_POST[$key$n] => $value"
declare -A item_name
l10n(){
- [ -n "$item_name[$1]" ] && printf %s "$item_name[$1]" || printf %s "$1"
+ [ -n "$item_name[$1]+x" ] && printf %s "$item_name[$1]" || printf %s "$1"
}