husted      2004/01/20 19:53:49

  Modified:    src/share/org/apache/struts/upload
                        CommonsMultipartRequestHandler.java
  Log:
  Apply #23255 "FormFile.getFileName() problem in multibyte character file name" 
submitted by YOKOTA Takehiko.
  
  Revision  Changes    Path
  1.13      +7 -4      
jakarta-struts/src/share/org/apache/struts/upload/CommonsMultipartRequestHandler.java
  
  Index: CommonsMultipartRequestHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/upload/CommonsMultipartRequestHandler.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- CommonsMultipartRequestHandler.java       13 Jan 2004 12:48:52 -0000      1.12
  +++ CommonsMultipartRequestHandler.java       21 Jan 2004 03:53:49 -0000      1.13
  @@ -214,6 +214,9 @@
   
           // Create and configure a DIskFileUpload instance.
           DiskFileUpload upload = new DiskFileUpload();
  +        // The following line is to support an "EncodingFilter"
  +        // see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23255
  +        upload.setHeaderEncoding(request.getCharacterEncoding());
           // Set the maximum size before a FileUploadException will be thrown.
           upload.setSizeMax((int) getSizeMax(ac));
           // Set the maximum size that will be stored in memory.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to