diff options
author | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-04 23:04:23 +0100 |
---|---|---|
committer | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-04 23:04:23 +0100 |
commit | 2723c9ccb938e073b4c8cd26e39553a31bcbfdbe (patch) | |
tree | 3ab45bbc9505737346be36dfee4a43f52a96e917 /src/main/java/eu/siacs/conversations/entities/Message.java | |
parent | 3522243835fd29751109cb578897b4e403f06b7d (diff) |
made checks for valid image extensions case insensitive
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Message.java | 2 |
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 b5a1897d2..8cb486356 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -395,7 +395,7 @@ public class Message extends AbstractEntity { String[] pathParts = url.getPath().split("/"); String filename; if (pathParts.length > 0) { - filename = pathParts[pathParts.length - 1]; + filename = pathParts[pathParts.length - 1].toLowerCase(); } else { return false; } |