mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 16:56:16 +00:00
Removing double quotes from document file extensions. Fixes #12.
This commit is contained in:
parent
5b2107b7ae
commit
cc7b2f09af
@ -91,6 +91,10 @@ public class DocumentFileManager extends AbstractMediaFileManager {
|
|||||||
if (ext==null) {
|
if (ext==null) {
|
||||||
ext = extensionFromMimetype(doc.getMimeType());
|
ext = extensionFromMimetype(doc.getMimeType());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sometimes, extensions contain a trailing double quote. Remove this. Fixes #12.
|
||||||
|
ext = ext.replace("\"", "");
|
||||||
|
|
||||||
this.extension = ext;
|
this.extension = ext;
|
||||||
return ext;
|
return ext;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user