You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gh...@apache.org on 2003/05/18 03:50:46 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/servlet/multipart MultipartHttpServletRequest.java

ghoward     2003/05/17 18:50:46

  Modified:    src/java/org/apache/cocoon/servlet/multipart
                        MultipartHttpServletRequest.java
  Log:
  Fix file cleanup on uploads.
  
  Revision  Changes    Path
  1.2       +2 -2      cocoon-2.1/src/java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java
  
  Index: MultipartHttpServletRequest.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MultipartHttpServletRequest.java	4 Apr 2003 13:19:05 -0000	1.1
  +++ MultipartHttpServletRequest.java	18 May 2003 01:50:46 -0000	1.2
  @@ -97,7 +97,7 @@
       public void cleanup() throws IOException {
           Enumeration e = getParameterNames();
           while (e.hasMoreElements()) {
  -            Object o = e.nextElement();
  +            Object o = get( (String)e.nextElement() );
               if (o instanceof PartOnDisk) {
                   File file = ((PartOnDisk) o).getFile();
                   file.delete();