* normalize filename in FileItem constructor.
This commit is contained in:
parent
43ee46e653
commit
7c8404d57d
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ public class MimePart implements Serializable {
|
||||||
* @param fileItem a commons fileupload file item
|
* @param fileItem a commons fileupload file item
|
||||||
*/
|
*/
|
||||||
public MimePart(FileItem fileItem) {
|
public MimePart(FileItem fileItem) {
|
||||||
name = fileItem.getName();
|
name = normalizeFilename(fileItem.getName());
|
||||||
contentType = fileItem.getContentType();
|
contentType = fileItem.getContentType();
|
||||||
contentLength = (int) fileItem.getSize();
|
contentLength = (int) fileItem.getSize();
|
||||||
if (fileItem.isInMemory()) {
|
if (fileItem.isInMemory()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue