Changeset 4893


Ignore:
Timestamp:
Apr 8, 2009, 10:17:52 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1295: Downloading files with space characters in the filename will suggest only the first part until space as name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/servlet/Download.java

    r4889 r4893  
    160160      response.setContentType(mimeType);
    161161      if (f.getCharacterSet() != null) response.setCharacterEncoding(f.getCharacterSet());
    162       if (download) response.setHeader("Content-Disposition", "attachment;filename="+f.getName());
     162      if (download) response.setHeader("Content-Disposition", "attachment;filename=\""+f.getName() + "\"");
    163163      if (f.getSize() < Integer.MAX_VALUE) response.setContentLength((int)f.getSize());
    164164      InputStream in = f.getDownloadStream(0);
Note: See TracChangeset for help on using the changeset viewer.