From 35f560db17b766582184a9e37b1d23b3bdb8d7c7 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 8 Nov 2016 17:28:44 +0000 Subject: [PATCH] account for Different CGI variable naming in apache svn path=/trunk/; revision=40 --- cgi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" \ -- 2.39.2