Fix some type of files treated as images

Such as .pcapng which is a Wireshark format that couldn't be sent.
This commit is contained in:
Mickaël Turnel 2018-06-15 15:07:43 +02:00
parent 554e773977
commit 7432b9c698

View file

@ -415,7 +415,7 @@ public final class LinphoneUtils {
String extension = LinphoneUtils.getExtensionFromFileName(path);
if(extension != null)
extension = extension.toLowerCase();
return (extension != null && extension.matches(".*(png|jpg|jpeg|bmp|gif).*"));
return (extension != null && extension.matches("(png|jpg|jpeg|bmp|gif)"));
}
public static void recursiveFileRemoval(File root) {