You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/01/21 04:53:49 UTC

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

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: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org