You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by rl...@apache.org on 2002/11/07 06:58:03 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/upload BufferedMultipartInputStream.java

rleland     2002/11/06 21:58:03

  Modified:    src/share/org/apache/struts/upload
                        BufferedMultipartInputStream.java
  Log:
  Bug 14226 Submitted by
  jeanchristophe.denis@free.fr (Jean-Christophe Denis)
  he also pointed out location of Bug !!!
  
  Thanks
  
  Revision  Changes    Path
  1.8       +4 -4      jakarta-struts/src/share/org/apache/struts/upload/BufferedMultipartInputStream.java
  
  Index: BufferedMultipartInputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/upload/BufferedMultipartInputStream.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- BufferedMultipartInputStream.java	6 Jul 2002 04:44:07 -0000	1.7
  +++ BufferedMultipartInputStream.java	7 Nov 2002 05:58:03 -0000	1.8
  @@ -143,7 +143,7 @@
           this.contentLength = contentLength;
           this.maxSize = maxSize;
           
  -        if (maxSize < contentLength) {
  +        if ((maxSize != -1) && (maxSize < contentLength)) {
               throw new MaxLengthExceededException(maxSize);
           }
           buffer = new byte[bufferSize];
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>