Project

General

Profile

« Previous | Next » 

Revision 4683

Added by walbridge almost 16 years ago

Quote filenames as per RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1), this prevents filename truncation on Firefox for files with spaces within the names (part of #2566).

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
1777 1777
                    docname = docid + "-" + docname;
1778 1778
                }
1779 1779
                response.setHeader("Content-Disposition",
1780
                        "attachment; filename=" + docname);
1780
                        "attachment; filename=\"" + docname + "\"");
1781 1781
                
1782 1782
                try {
1783 1783
                    ServletOutputStream out = response.getOutputStream();

Also available in: Unified diff