From: paul Date: Tue, 8 Nov 2016 17:28:44 +0000 (+0000) Subject: account for Different CGI variable naming in apache X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=35f560db17b766582184a9e37b1d23b3bdb8d7c7;p=clickslide account for Different CGI variable naming in apache svn path=/trunk/; revision=40 --- diff --git a/cgi.sh b/cgi.sh index 206f322..c366843 100755 --- a/cgi.sh +++ b/cgi.sh @@ -34,7 +34,7 @@ printf '%s\n' "$QUERY_STRING" |tr '&' '\n' |while read query; do debug "_GET[$key] => $val" done -if [ "$REQUEST_METHOD" = POST -a "$HTTP_CONTENT_LENGTH" -gt 0 ]; then +if [ "$REQUEST_METHOD" = POST -a "${HTTP_CONTENT_LENGTH:=$CONTENT_LENGTH}" -gt 0 ]; then # parse HTTP POST string debug "== CGI DATA: POST ==" head -c "$HTTP_CONTENT_LENGTH" \