aboutsummaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-05-18 14:20:12 +0700
committerGravatar Ugnich Anton2014-05-18 14:20:12 +0700
commit186016ac2e03c10497e30c9a651dc9757108b489 (patch)
treea4417e5ff42178485b90af55b7c2e8d2638e17e0 /src/java
parent5990e6c679cf0449bb3357647d1adaf7cedebe70 (diff)
Utils receiveMultipart file extension toLowerCase
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/juick/http/www/Utils.java2
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";