diff options
author | Ugnich Anton | 2014-05-18 14:20:12 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-05-18 14:20:12 +0700 |
commit | 186016ac2e03c10497e30c9a651dc9757108b489 (patch) | |
tree | a4417e5ff42178485b90af55b7c2e8d2638e17e0 /src | |
parent | 5990e6c679cf0449bb3357647d1adaf7cedebe70 (diff) |
Utils receiveMultipart file extension toLowerCase
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/juick/http/www/Utils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/juick/http/www/Utils.java b/src/java/com/juick/http/www/Utils.java index 2ba12f5e..271252c7 100644 --- a/src/java/com/juick/http/www/Utils.java +++ b/src/java/com/juick/http/www/Utils.java @@ -60,7 +60,7 @@ public class Utils { Part filePart = request.getPart("attach"); if (filePart != null) { String partname = Utils.getPartFilename(filePart); - String attachmentType = partname.substring(partname.length() - 3); + String attachmentType = partname.substring(partname.length() - 3).toLowerCase(); if (attachmentType.equals("jpg") || attachmentType.equals("peg") || attachmentType.equals("png")) { if (attachmentType.equals("peg")) { attachmentType = "jpg"; |