aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities/Message.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-10-22 13:06:46 +0200
committeriNPUTmice <daniel@gultsch.de>2014-10-22 13:06:46 +0200
commit62b0fc3fdac1af440d61bb6d197dcd7fc34372b4 (patch)
tree9bda78ccbc7e7c10f2f643f9bf67eadf33c23443 /src/eu/siacs/conversations/entities/Message.java
parent45bdadd915ed0e0135de16876f9842b3401f1ac4 (diff)
made httpconnection accept aes encrypted files
Diffstat (limited to 'src/eu/siacs/conversations/entities/Message.java')
-rw-r--r--src/eu/siacs/conversations/entities/Message.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/entities/Message.java b/src/eu/siacs/conversations/entities/Message.java
index dab28539..a390c7ca 100644
--- a/src/eu/siacs/conversations/entities/Message.java
+++ b/src/eu/siacs/conversations/entities/Message.java
@@ -403,8 +403,9 @@ public class Message extends AbstractEntity {
extensionParts[extensionParts.length - 1])) {
return true;
} else if (extensionParts.length == 3
- && Arrays.asList(Downloadable.VALID_CRYPTO_EXTENSIONS)
- .contains(extensionParts.length - 1)
+ && Arrays
+ .asList(Downloadable.VALID_CRYPTO_EXTENSIONS)
+ .contains(extensionParts[extensionParts.length - 1])
&& Arrays.asList(Downloadable.VALID_EXTENSIONS).contains(
extensionParts[extensionParts.length - 2])) {
return true;