Merge revision 9360 from trunk: Apply totalUploadLimit value to ordinary form post requests.

This commit is contained in:
hns 2008-11-06 17:44:01 +00:00
parent b64f5aeb22
commit 930c1cf6fc

View file

@ -701,6 +701,9 @@ public abstract class AbstractServletClient extends HttpServlet {
// Parse any posted parameters in the input stream
if (isFormPost) {
int max = request.getContentLength();
if (max > totalUploadLimit * 1024) {
throw new IOException("Exceeded Upload limit");
}
int len = 0;
byte[] buf = new byte[max];
ServletInputStream is = request.getInputStream();