From: Paul Hänsch Date: Mon, 26 Jul 2021 22:56:29 +0000 (+0200) Subject: Merge commit '79b11c6e49fd72ab72cad311429711dd8ce6bfd6' X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=3c7b5befba1f381f44abb8a4a6637652842361b4;hp=258959637ea2f9499c8807daf21d7e1057c4ad14;p=webpoll Merge commit '79b11c6e49fd72ab72cad311429711dd8ce6bfd6' --- diff --git a/cgilite/cgilite.sh b/cgilite/cgilite.sh index f766ee2..9fa56ee 100755 --- a/cgilite/cgilite.sh +++ b/cgilite/cgilite.sh @@ -157,15 +157,15 @@ cgilite_keys(){ | 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#*\?}"; } diff --git a/cgilite/storage.sh b/cgilite/storage.sh index 355bd56..61eec88 100755 --- a/cgilite/storage.sh +++ b/cgilite/storage.sh @@ -161,7 +161,7 @@ DBM() { 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 @@ -178,7 +178,7 @@ DBM() { 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