commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mart...@apache.org
Subject cvs commit: jakarta-commons/fileupload/src/java/org/apache/commons/fileupload FileUploadBase.java
Date Mon, 11 Oct 2004 05:06:33 GMT
martinc     2004/10/10 22:06:33

  Modified:    fileupload/src/java/org/apache/commons/fileupload
                        FileUploadBase.java
  Log:
  Bug #28085 - check that HTTP method is POST as part of multipart check.
  
  Revision  Changes    Path
  1.9       +5 -1      jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/FileUploadBase.java
  
  Index: FileUploadBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/FileUploadBase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- FileUploadBase.java	11 Oct 2004 01:59:49 -0000	1.8
  +++ FileUploadBase.java	11 Oct 2004 05:06:33 -0000	1.9
  @@ -64,6 +64,10 @@
        */
       public static final boolean isMultipartContent(HttpServletRequest req)
       {
  +        if (!"post".equals(req.getMethod().toLowerCase()))
  +        {
  +            return false;
  +        }
           String contentType = req.getHeader(CONTENT_TYPE);
           if (contentType == null)
           {
  
  
  

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


Mime
View raw message