mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2026-09-30 00:02:39 +00:00
Removing double quotes from document file extensions. Fixes #12.
This commit is contained in:
1 parent
5b2107b7ae
commit
cc7b2f09af
1 file changed
+4
+4
@@ -91,6 +91,10 @@ public class DocumentFileManager extends AbstractMediaFileManager {
|
||||
if (ext==null) {
|
||||
ext = extensionFromMimetype(doc.getMimeType());
|
||||
}
|
||||
|
||||
// Sometimes, extensions contain a trailing double quote. Remove this. Fixes #12.
|
||||
ext = ext.replace("\"", "");
|
||||
|
||||
this.extension = ext;
|
||||
return ext;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user