Correcting bashism in frontends/cgi/live-build-cgi
authorRichard Nelson <unixabg@gmail.com>
Thu, 30 May 2013 18:13:10 +0000 (13:13 -0500)
committerRichard Nelson <unixabg@gmail.com>
Thu, 30 May 2013 18:13:10 +0000 (13:13 -0500)
frontends/cgi/live-build-cgi

index 8014ebb..49cb1e5 100755 (executable)
@@ -32,12 +32,12 @@ fi
 echo "Content-type: text/html"
 echo
 
-#QUERY_STRING=`cat /dev/stdin`
-#QUERY_STRING=$(cat /dev/stdin)
 # If we are passed something then read it in.
 if [ "$REQUEST_METHOD" = "POST" ] && [ "$CONTENT_LENGTH" -gt 0 ]
 then
-       read -n $CONTENT_LENGTH POST_DATA <&0
+       #QUERY_STRING=`cat /dev/stdin`
+       QUERY_STRING=$(cat /dev/stdin)
+       #read -n $CONTENT_LENGTH POST_DATA <&0
 fi
 
 # Translate parameters