str=${str#*&${name}=}
cnt=$((cnt - 1))
done
- printf "$(printf %s "${str%%&*}" |sed -r 's;\+; ;g;'"$HEX_DECODE")"
+ printf -- "$(printf %s "${str%%&*}" |sed -r 's;\+; ;g;'"$HEX_DECODE")"
}
+cgilite_keys(){
+ local str="&$1"
+ while [ "${str#*&}" != "${str}" ]; do
+ str="${str#*&}"
+ printf '%s\n' "${str%%=*}"
+ done \
+ | sort -u
+}
+
GET(){ cgilite_value "${QUERY_STRING}" $@; }
GET_COUNT(){ cgilite_count "${QUERY_STRING}" $1; }
+GET_KEYS(){ cgilite_keys "${QUERY_STRING}"; }
POST(){ cgilite_value "${cgilite_post}" $@; }
POST_COUNT(){ cgilite_count "${cgilite_post}" $1; }