| sort -u
}
-GET(){ cgilite_value "${QUERY_STRING}" $@; }
+GET(){ cgilite_value "${QUERY_STRING}" "$@"; }
GET_COUNT(){ cgilite_count "${QUERY_STRING}" $1; }
GET_KEYS(){ cgilite_keys "${QUERY_STRING}"; }
-POST(){ cgilite_value "${cgilite_post}" $@; }
+POST(){ cgilite_value "${cgilite_post}" "$@"; }
POST_COUNT(){ cgilite_count "${cgilite_post}" $1; }
POST_KEYS(){ cgilite_keys "${cgilite_post}"; }
-REF(){ cgilite_value "${HTTP_REFERER#*\?}" $@; }
+REF(){ cgilite_value "${HTTP_REFERER#*\?}" "$@"; }
REF_COUNT(){ cgilite_count "${HTTP_REFERER#*\?}" $1; }
REF_KEYS(){ cgilite_keys "${HTTP_REFERER#*\?}"; }
update|replace)
k="$1" key="$(STRING "$1")" value="$(STRING "$2")"
LOCK "$file" || return 1
- if ! DBM check "$k"; then
+ if ! DBM "$file" check "$k"; then
RELEASE "$file"
return 1
fi
append)
key="$(STRING "$1")" value="$(STRING "$2")"
LOCK "$file" || return 1
- if ! DBM check "$1"; then
+ if ! DBM "$file" check "$1"; then
RELEASE "$file"
return 1
fi