tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteRequest.java
Date Sat, 15 Nov 2003 20:28:37 GMT
remm        2003/11/15 12:28:37

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteRequest.java
  Log:
  - Disable POST size limitation if maxPostSize is <= 0.
  
  Revision  Changes    Path
  1.19      +6 -5      jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- CoyoteRequest.java	15 Nov 2003 09:45:02 -0000	1.18
  +++ CoyoteRequest.java	15 Nov 2003 20:28:37 -0000	1.19
  @@ -2320,7 +2320,8 @@
           int len = getContentLength();
   
           if (len > 0) {
  -            if (len > ((CoyoteConnector) connector).getMaxPostSize()) {
  +            int maxPostSize = ((CoyoteConnector) connector).getMaxPostSize();
  +            if ((maxPostSize > 0) && (len > maxPostSize)) {
                   log(sm.getString("coyoteRequest.postTooLarge"));
                   return;
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message