aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2015-04-13 15:55:00 +0200
committerlookshe <github@lookshe.org>2015-04-13 15:55:00 +0200
commit516c343e8af6c43ff79bf120c63f37aa2db5c5f8 (patch)
treec9d8ad2148ae495bb34946de05a73b10b59611a9 /src/main
parent12486e9a29519c8b0b264b73173c7a4ff28854e5 (diff)
check with lowercase to also match JPEG, JPeg ...
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Message.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java
index a8018088..bcb1ca24 100644
--- a/src/main/java/eu/siacs/conversations/entities/Message.java
+++ b/src/main/java/eu/siacs/conversations/entities/Message.java
@@ -452,7 +452,7 @@ public class Message extends AbstractEntity {
int iSlashIndex = sUrlPath.lastIndexOf('/') + 1;
- String sLastUrlPath = sUrlPath.substring(iSlashIndex);
+ String sLastUrlPath = sUrlPath.substring(iSlashIndex).toLowerCase();
String[] extensionParts = sLastUrlPath.split("\\.");
if (extensionParts.length == 2