diff options
author | Vitaly Takmazov | 2016-11-11 16:14:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-11 16:17:37 +0300 |
commit | 16b33e09780b4778f37257a4f81803b3777754ec (patch) | |
tree | bdf2ee8fa45d8496eb231fcfc14248bd60897051 /juick-xmpp-ft/src/main/java/com/juick/components | |
parent | 3069c76cc870fded9bef581a218b68fa4e38fd49 (diff) |
xmpp-ft: lowercase extension
Diffstat (limited to 'juick-xmpp-ft/src/main/java/com/juick/components')
-rw-r--r-- | juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java b/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java index e922e7fa..14d65de9 100644 --- a/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java +++ b/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java @@ -56,7 +56,7 @@ public class XMPPFTServer { fileTransferManager.addFileTransferOfferListener(e -> { try { List<String> allowedTypes = new ArrayList<String>() {{ add("png"); add("jpg"); }}; - String attachmentExtension = FilenameUtils.getExtension(e.getName()); + String attachmentExtension = FilenameUtils.getExtension(e.getName()).toLowerCase(); String targetFilename = String.format("%s.%s", DigestUtils.md5Hex(String.format("%s-%s", e.getInitiator().toString(), e.getSessionId()).getBytes()), attachmentExtension); |