1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-26 02:06:30 +00:00

Removing double quotes from document file extensions. Fixes #12.

This commit is contained in:
Fabian Schlenz 2016-09-19 06:54:36 +02:00
parent 5b2107b7ae
commit cc7b2f09af

View File

@ -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;
}