webbuild-functions: silence a warning which should be harmful and can't fix on client side

This commit is contained in:
Silvan Calarco 2014-06-28 18:50:15 +02:00
parent 58d61d51e3
commit 85e7950c4e

View File

@ -96,9 +96,9 @@ function cgi_get_POST_vars()
cgi_get_POST_upload "${CONTENT_TYPE/*boundary=}" cgi_get_POST_upload "${CONTENT_TYPE/*boundary=}"
return return
fi fi
[ "${CONTENT_TYPE:0:33}" != "application/x-www-form-urlencoded" ] && \ #[ "${CONTENT_TYPE:0:33}" != "application/x-www-form-urlencoded" ] && \
echo "Warning: you should probably use MIME type "\ # echo "Warning: you should probably use MIME type "\
"application/x-www-form-urlencoded instead of ${CONTENT_TYPE}!" 1>&2 # "application/x-www-form-urlencoded instead of ${CONTENT_TYPE}!" 1>&2
# save POST variables (only first time this is called) # save POST variables (only first time this is called)
[ -z "$QUERY_STRING_POST" \ [ -z "$QUERY_STRING_POST" \
-a "$REQUEST_METHOD" = "POST" -a ! -z "$CONTENT_LENGTH" ] && -a "$REQUEST_METHOD" = "POST" -a ! -z "$CONTENT_LENGTH" ] &&