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:
parent
554e773977
commit
7432b9c698
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue