Merge revision 9360 from trunk: Apply totalUploadLimit value to ordinary form post requests.
This commit is contained in:
parent
b64f5aeb22
commit
930c1cf6fc
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue