From eaf4e0220c913b0dc12b00fb84777f66c2e732db Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 13 Nov 2014 14:28:19 +0100 Subject: [PATCH] cgi_getvars(): fix warning when empty key is received --- webbuild/webbuild-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbuild/webbuild-functions b/webbuild/webbuild-functions index 5d9e8c1..335b204 100644 --- a/webbuild/webbuild-functions +++ b/webbuild/webbuild-functions @@ -168,7 +168,7 @@ function cgi_getvars() p=`echo $q | sed "s|&.*||"` q=`echo $q | sed "s|[^&]*&||"` k="${p%%=*}" # get the key (variable name) from it - [ "$k" = "REMOTE_ADDR" -o "$k" = "REMOTE_HOST" -o "$k" = "REMOTE_PORT" -o "$k" = "REMOTE_USER" ] && continue + [ ! "$k" -o "$k" = "REMOTE_ADDR" -o "$k" = "REMOTE_HOST" -o "$k" = "REMOTE_PORT" -o "$k" = "REMOTE_USER" ] && continue v="${p#*=}" # get the value from it # decode and evaluate var if requested if [ "$k" != "SPECTEXT" ]; then