Apply totalUploadLimit value to ordinary form post requests.

This commit is contained in:
hns 2008-11-06 17:37:25 +00:00
parent 6141392ab9
commit 5c71734acb

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();