From 516c343e8af6c43ff79bf120c63f37aa2db5c5f8 Mon Sep 17 00:00:00 2001 From: lookshe Date: Mon, 13 Apr 2015 15:55:00 +0200 Subject: check with lowercase to also match JPEG, JPeg ... --- src/main/java/eu/siacs/conversations/entities/Message.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3