Don't nanny the user. Allow all file types as attachments.

The Android client already has no such restrictions, and these are
ineffective anyway, as they are based on the file's name, not its
payload.
pull/2171/head
Ian Macdonald 3 years ago
parent 04af2d05e0
commit 6613161b20
No known key found for this signature in database
GPG Key ID: AE4C20556BA626FA

@ -60,7 +60,6 @@
"thisWeek": "This Week",
"thisMonth": "هذا الشهر",
"voiceMessage": "رسالة صوتية",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "معاينة رابط الصورة المصغرة للمسودة من اجل $domain$",
"previewThumbnail": "معاينة رابط الصورة المصغرة لـ $domain$",
"stagedImageAttachment": "مرفق صورة المسودة: $path$",

@ -60,7 +60,6 @@
"thisWeek": "На Этой Неделе",
"thisMonth": "В Этом Месяце",
"voiceMessage": "Голосовое сообщение",
"dangerousFileType": "По соображениям безопасности этот тип файлов нельзя пересылать в приложениях.",
"stagedPreviewThumbnail": "Черновик миниатюры предварительного просмотра ссылки для $domain$",
"previewThumbnail": "Миниатюра предварительного просмотра ссылки для $domain$",
"stagedImageAttachment": "Черновик вложения изображения: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Aquesta setmana",
"thisMonth": "Aquest mes",
"voiceMessage": "Missatge de veu",
"dangerousFileType": "Per raons de seguretat, el tipus d'adjunt no es permès ",
"stagedPreviewThumbnail": "Previsualització de l'esborrany de la vista en miniatura de l'enllaç $domain$",
"previewThumbnail": "Previsualització de la vista en miniatura de l'enllaç $domain$",
"stagedImageAttachment": "Esborrany de la imatge adjuntada: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Tento týden",
"thisMonth": "Tento měsíc",
"voiceMessage": "Hlasová zpráva",
"dangerousFileType": "Tento typ přílohy není povolen z bezpečnostních důvodů",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Denne uge",
"thisMonth": "Denne måned",
"voiceMessage": "Talebesked",
"dangerousFileType": "Vedhæftningstype er ikke tilladt af sikkerhedsmæssige årsager",
"stagedPreviewThumbnail": "Udkast miniaturebillede til eksempelvisning for $domain$",
"previewThumbnail": "Miniaturebillede til eksempelvisning for $domain$",
"stagedImageAttachment": "Udkast af vedhæftet billedfil: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Diese Woche",
"thisMonth": "Diesen Monat",
"voiceMessage": "Sprachnachricht",
"dangerousFileType": "Anhangstyp aus Sicherheitsgründen nicht erlaubt",
"stagedPreviewThumbnail": "Miniaturbild des Link-Vorschauentwurfs für $domain$",
"previewThumbnail": "Miniaturbild der Link-Vorschau für $domain$",
"stagedImageAttachment": "Entwurf für Bildanhang: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Αυτή την εβδομάδα",
"thisMonth": "Αυτό τον μήνα",
"voiceMessage": "Φωνητικό Μήνυμα",
"dangerousFileType": "Ο τύπος του συνημμένου δεν επιτρέπεται για λόγους ασφαλείας",
"stagedPreviewThumbnail": "Πρόχειρη μικρή προεσκόπιση συνδέσμου για $domain$",
"previewThumbnail": "Μικρή προεσκόπιση συνδέσμου για $domain$",
"stagedImageAttachment": "Πρόχειρη συνημμένη εικόνα: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Ĉisemajne",
"thisMonth": "Ĉimonate",
"voiceMessage": "Voĉa mesaĝo",
"dangerousFileType": "Kunsendaĵa tipo ne permesata por sekurecaj kialoj",
"stagedPreviewThumbnail": "Preparante miniaturan antaŭrigardon de ligilo pri $domain$",
"previewThumbnail": "Miniatura antaŭrigardo de ligilo pri $domain$",
"stagedImageAttachment": "Preparante bildan kunsendaĵon: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Esta Semana",
"thisMonth": "Este Mes",
"voiceMessage": "Nota de voz",
"dangerousFileType": "Tipo de adjunto no permitido por razones se seguridad",
"stagedPreviewThumbnail": "Preparando miniatura de visualización de enlace para $domain$",
"previewThumbnail": "Miniatura de previsualización para $domain$",
"stagedImageAttachment": "Preparando adjunto múltiple: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Esta semana",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "See nädal",
"thisMonth": "See kuu",
"voiceMessage": "Häälsõnum",
"dangerousFileType": "Manuse tüüp pole turvakaalutlustel lubatud.",
"stagedPreviewThumbnail": "Lingi eelvaate pisipildi mustand: $domain$",
"previewThumbnail": "Lingi eelvaate pisipilt: $domain$",
"stagedImageAttachment": "Piltmanuse mustand: $path$",

@ -60,7 +60,6 @@
"thisWeek": "این هفته",
"thisMonth": "این ماه",
"voiceMessage": "پیام صوتی",
"dangerousFileType": "نوع پیوست به دلایل امنیتی مجاز نیست.",
"stagedPreviewThumbnail": "پیش نویس پیوند پیش نمایش پیوند برای $domain$",
"previewThumbnail": "پیش نمایش لینک برای $domain$",
"stagedImageAttachment": "تصویر پیوست پیش نویس: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Tämä viikko",
"thisMonth": "Tämä kuukausi",
"voiceMessage": "Ääniviesti",
"dangerousFileType": "Turvallisuussyistä tätä tiedostotyyppiä ei voida liittää.",
"stagedPreviewThumbnail": "Linkin $domain$esikatselukuvan luonnos",
"previewThumbnail": "Linkin $domain$ esikatselukuva",
"stagedImageAttachment": "Kuvaliitteen $path$ luonnos",

@ -60,7 +60,6 @@
"thisWeek": "This week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Cette semaine",
"thisMonth": "Ce mois",
"voiceMessage": "Message vocal",
"dangerousFileType": "Le type de fichier joint nest pas autorisé pour des raisons de sécurité",
"stagedPreviewThumbnail": "Brouillon dimagette daperçu de lien pour $domain$",
"previewThumbnail": "Imagette daperçu de lien pour $domain$",
"stagedImageAttachment": "Brouillon dimage jointe : $path$",

@ -60,7 +60,6 @@
"thisWeek": "השבוע",
"thisMonth": "החודש",
"voiceMessage": "הודעה קולית",
"dangerousFileType": "סוג הצרופה אינו מותר מסיבות אבטחה",
"stagedPreviewThumbnail": "טיוטה של קדם־תצוגה של קישור עבור $domain$",
"previewThumbnail": "קדם־תצוגה של קישור עבור $domain$",
"stagedImageAttachment": "טיוטה של צרופת תמונה: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This Week",
"thisMonth": "इस महीने",
"voiceMessage": "ध्वनि संदेश",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This Week",
"thisMonth": "This Month",
"voiceMessage": "Glasovna poruka",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Ezen a héten",
"thisMonth": "Ebben a hónapban",
"voiceMessage": "Hangüzenet",
"dangerousFileType": "A csatolmánytípus biztonsági okokból nincs engedélyezve",
"stagedPreviewThumbnail": "A $domain$ hivatkozás előnézeti képének vázlata",
"previewThumbnail": "A $domain$ hivatkozás előnézeti képe",
"stagedImageAttachment": "Képcsatolmány vázlat: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Minggu ini",
"thisMonth": "Bulan ini",
"voiceMessage": "Pesan Suara",
"dangerousFileType": "Jenis lampiran tidak diperbolehkan untuk alasan keamanan",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Questa Settimana",
"thisMonth": "Questo Mese",
"voiceMessage": "Messaggio vocale",
"dangerousFileType": "Il tipo di allegato non è consentito per ragioni di sicurezza",
"stagedPreviewThumbnail": "Miniatura temporanea anteprima link per $domain$",
"previewThumbnail": "Miniatura anteprima link per $domain$",
"stagedImageAttachment": "Allegato immagine bozza: $path$",

@ -60,7 +60,6 @@
"thisWeek": "今週",
"thisMonth": "今月",
"voiceMessage": "音声メッセージ",
"dangerousFileType": "セキュリティ上の理由で許可されていない種類の添付ファイルです",
"stagedPreviewThumbnail": "$domain$ のサムネイルリンクプレビュー(下書き)",
"previewThumbnail": "$domain$ のサムネイルリンクプレビュー",
"stagedImageAttachment": "添付画像(下書き): $path$",

@ -60,7 +60,6 @@
"thisWeek": "ამ კვირაში",
"thisMonth": "ამ თვეს",
"voiceMessage": "ხმოვანი შეტყობინება",
"dangerousFileType": "უსაფრთხოების მიზნით, ამ ტიპის ფაილის გაგზავნა შეუძლებელია",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "សប្តាហ៍នេះ",
"thisMonth": "ខែនេះ",
"voiceMessage": "សារសំឡេង",
"dangerousFileType": "ប្រភេទឯកសារភ្ជាប់មិនអនុញ្ញាតសម្រាប់ហេតុផលសុវត្ថិភាព",
"stagedPreviewThumbnail": "ការមើលតំណជារូបភាពតូចៗព្រាងសម្រាប់ $domain$",
"previewThumbnail": "ការមើលតំណជារូបភាពតូចៗសម្រាប់$domain$",
"stagedImageAttachment": "រូបភាពឯកសារភ្ជាប់ព្រាង៖ $path$",

@ -60,7 +60,6 @@
"thisWeek": "This week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This Week",
"thisMonth": "이번 달",
"voiceMessage": "보이스 메시지",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Šią savaitę",
"thisMonth": "Šį mėnesį",
"voiceMessage": "Balso žinutė",
"dangerousFileType": "Šis priedo tipas saugumo sumetimais yra neleidžiamas",
"stagedPreviewThumbnail": "Juodraštinė miniatiūrinė nuorodos peržiūra, skirta $domain$",
"previewThumbnail": "Miniatiūrinė nuorodos peržiūra, skirta $domain$",
"stagedImageAttachment": "Juodraštinis paveikslo priedas: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This Week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Deze week",
"thisMonth": "Deze maand",
"voiceMessage": "Audiobericht",
"dangerousFileType": "Type bijlage niet toegestaan wegens veiligheidsredenen",
"stagedPreviewThumbnail": "Conceptvoorbeeldweergave voor $domain$",
"previewThumbnail": "Voorbeeldweergave voor $domain$",
"stagedImageAttachment": "Concept voor afbeeldingsbijlage: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Denne uken",
"thisMonth": "Denne måneden",
"voiceMessage": "Talebeskjed",
"dangerousFileType": "Av sikkerhetsårsaker kan denne filtypen ikke sendes",
"stagedPreviewThumbnail": "Miniatyrlenkeforhåndsvisningskladd for $domain$",
"previewThumbnail": "Miniatyrlenkeforhåndsvisning for $domain$",
"stagedImageAttachment": "Bildevedleggskladd: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "W tym tygodniu",
"thisMonth": "W tym miesiącu",
"voiceMessage": "Wiadomość głosowa",
"dangerousFileType": "Ze względów bezpieczeństwa ten typ załącznika nie jest dozwolony",
"stagedPreviewThumbnail": "Projekt miniaturki podglądu linku do $domain$",
"previewThumbnail": "Podgląd miniaturki linku dla $domain$",
"stagedImageAttachment": "Projekt załącznika obrazu: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Esta Semana",
"thisMonth": "Este Mês",
"voiceMessage": "Mensagem de Voz",
"dangerousFileType": "Tipo de anexo não permitido por motivos de segurança",
"stagedPreviewThumbnail": "Pré-visualização em miniatura do link $domain$ (rascunho)",
"previewThumbnail": "Pré-visualização em miniatura do link $domain$",
"stagedImageAttachment": "Rascunho de imagem anexa: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Esta semana",
"thisMonth": "Este mês",
"voiceMessage": "Mensagem de voz",
"dangerousFileType": "O tipo de ficheiro deste anexo não é permitido por razões de segurança",
"stagedPreviewThumbnail": "Pré-visualização da hiperligação da miniatura do esboço $domain$",
"previewThumbnail": "Pré-visualização da hiperligação da miniatura $domain$",
"stagedImageAttachment": "Esboço do anexo de imagem: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Saptamana asta",
"thisMonth": "Luna asta",
"voiceMessage": "Mesaj vocal",
"dangerousFileType": "Tipul de atașament nu este permis din motive de securitate",
"stagedPreviewThumbnail": "Previzualizare link miniatură pentru $domain$",
"previewThumbnail": "Previzualizare link miniatură pentru $domain$",
"stagedImageAttachment": "Atașament imagine ciornă: $path$",

@ -60,7 +60,6 @@
"thisWeek": "На этой неделе",
"thisMonth": "В этом месяце",
"voiceMessage": "Голосовое сообщение",
"dangerousFileType": "Данный тип файлов невозможно переслать из соображений безопасности",
"stagedPreviewThumbnail": "Черновик миниатюры предварительного просмотра ссылки для $domain$",
"previewThumbnail": "Миниатюра предварительного просмотра ссылки для $domain$",
"stagedImageAttachment": "Черновик прикрепленного изображения: $path$",

@ -60,7 +60,6 @@
"thisWeek": "මෙම සතිය",
"thisMonth": "මෙම මාසය",
"voiceMessage": "හඬ පණිවිඩය",
"dangerousFileType": "ආරක්‍ෂක හේතූන් මත මෙම ගොනු වර්ගය යැවීමට නොහැකිය",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Tento týždeň",
"thisMonth": "Tento mesiac",
"voiceMessage": "Hlasová Správa",
"dangerousFileType": "Tento typ súboru je z bezpečnostných dôvodov zakázaný",
"stagedPreviewThumbnail": "Návrh náhľadu odkazu pre $domain$",
"previewThumbnail": "Náhľad odkazu pre $domain$",
"stagedImageAttachment": "Návrh obrázkovej prílohy: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Ta teden",
"thisMonth": "Ta mesec",
"voiceMessage": "Glasovno sporočilo",
"dangerousFileType": "Ta vrsta priponke iz varnostnih razlogov ni dovoljena",
"stagedPreviewThumbnail": "Osnutek predogledne sličice povezave na: $domain$",
"previewThumbnail": "Predogledna sličica povezave na: $domain$",
"stagedImageAttachment": "Osnutek slikovne priponke: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Këtë Javë",
"thisMonth": "Këtë Muaj",
"voiceMessage": "Mesazh Zanor",
"dangerousFileType": "Lloj bashkëngjitjeje i palejuar për arsye sigurie",
"stagedPreviewThumbnail": "Paraparje lidhjeje miniature skice për $domain$",
"previewThumbnail": "Paraparje lidhjeje miniature për $domain$",
"stagedImageAttachment": "Bashkëngjitje figure skice: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Ova nedelja",
"thisMonth": "Ovog meseca",
"voiceMessage": "Гласовна порука",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Pregled nacrta linka za $domain$",
"previewThumbnail": "Pregled linka za $domain$",
"stagedImageAttachment": "Nacrt priloga fotografje: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Denna vecka",
"thisMonth": "Denna månad",
"voiceMessage": "Röstmeddelande",
"dangerousFileType": "Bilagor av denna typ tillåts inte på grund av säkerhetsskäl",
"stagedPreviewThumbnail": "Utkast av länkförhandsvisning i miniatyrbild för $domain$",
"previewThumbnail": "Länkförhandsvisning i miniatyrbild för $domain$",
"stagedImageAttachment": "Utkast till bildbilaga: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "สัปดาห์นี้",
"thisMonth": "เดือนนี้",
"voiceMessage": "ข้อความเสียง",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Bu Hafta",
"thisMonth": "Bu Ay",
"voiceMessage": "Sesli İleti",
"dangerousFileType": "Eklenti türüne güvenlik sebeplerinden dolayı izin verilmemektedir",
"stagedPreviewThumbnail": "$domain$ için bağlantı ön izlemesi küçük resim taslağı",
"previewThumbnail": "$domain$ için bağlantı ön izlemesi küçük resmi",
"stagedImageAttachment": "Resim eklentisi taslağı: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This Week",
"thisMonth": "Цей місяць",
"voiceMessage": "Голосове повідомлення",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Попередній перегляд ескізу посилання для $domain$",
"previewThumbnail": "Попередній перегляд посилання для $domain$",
"stagedImageAttachment": "Ескіз прикріпленого зображення: $path$",

@ -60,7 +60,6 @@
"thisWeek": "This week",
"thisMonth": "This Month",
"voiceMessage": "Voice Message",
"dangerousFileType": "For security reasons, this file type cannot be sent",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "Tuần này",
"thisMonth": "Tháng này",
"voiceMessage": "Tin nhắn thoại",
"dangerousFileType": "Attachment type not allowed for security reasons",
"stagedPreviewThumbnail": "Draft thumbnail link preview for $domain$",
"previewThumbnail": "Thumbnail link preview for $domain$",
"stagedImageAttachment": "Draft image attachment: $path$",

@ -60,7 +60,6 @@
"thisWeek": "本周",
"thisMonth": "本月",
"voiceMessage": "语音消息",
"dangerousFileType": "为了安全,不允许此附件类型",
"stagedPreviewThumbnail": "待发送的$domain$链接预览",
"previewThumbnail": "$domain$的链接预览缩略图",
"stagedImageAttachment": "待发送的图片附件:$path$",

@ -60,7 +60,6 @@
"thisWeek": "本週",
"thisMonth": "本月",
"voiceMessage": "語音訊息",
"dangerousFileType": "因安全考量無法傳送此類附件\n",
"stagedPreviewThumbnail": "$domain$ 的草稿縮圖連結預覽",
"previewThumbnail": "$domain$ 的縮圖連結預覽",
"stagedImageAttachment": "草稿圖片附檔: $path$",

@ -87,26 +87,6 @@
align-items: center;
}
.module-message__generic-attachment__icon-dangerous-container {
position: absolute;
top: -1px;
right: -4px;
height: 16px;
width: 16px;
border-radius: 50%;
background-color: $color-white;
}
.module-message__generic-attachment__icon-dangerous {
height: 16px;
width: 16px;
@include color-svg('../images/error-filled.svg', $session-color-danger);
}
.module-message__generic-attachment__icon__extension {
font-size: 10px;
line-height: 13px;

@ -337,11 +337,6 @@ export class SessionConversation extends React.Component<Props, State> {
const { stagedAttachments } = this.props;
if (window.Signal.Util.isFileDangerous(fileName)) {
ToastUtils.pushDangerousFileError();
return;
}
if (stagedAttachments.length >= 32) {
ToastUtils.pushMaximumAttachmentsError();
return;

@ -24,7 +24,6 @@ import {
isImage,
isVideo,
} from '../../../../types/Attachment';
import { isFileDangerous } from '../../../../util';
import { saveAttachmentToDisk } from '../../../../util/attachmentsUtil';
import { Spinner } from '../../../basic/Spinner';
import { AudioPlayerWithEncryptedFile } from '../../H5AudioPlayer';
@ -149,7 +148,6 @@ export const MessageAttachment = (props: Props) => {
} else {
const { pending, fileName, fileSize, contentType } = firstAttachment;
const extension = getExtensionForDisplay({ contentType, fileName });
const isDangerous = isFileDangerous(fileName || '');
return (
<div className={classNames('module-message__generic-attachment')}>
@ -170,11 +168,6 @@ export const MessageAttachment = (props: Props) => {
</div>
) : null}
</div>
{isDangerous ? (
<div className="module-message__generic-attachment__icon-dangerous-container">
<div className="module-message__generic-attachment__icon-dangerous" />
</div>
) : null}
</div>
)}
<div className="module-message__generic-attachment__text">

@ -63,10 +63,6 @@ export function pushLoadAttachmentFailure(message?: string) {
}
}
export function pushDangerousFileError() {
pushToastError('dangerousFileType', window.i18n('dangerousFileType'));
}
export function pushFileSizeError(limit: number, units: string) {
pushToastError('fileSizeWarning', window.i18n('fileSizeWarning'), `Max size: ${limit} ${units}`);
}

@ -1,34 +0,0 @@
import { assert } from 'chai';
import { isFileDangerous } from '../../util/isFileDangerous';
describe('isFileDangerous', () => {
it('returns false for images', () => {
assert.strictEqual(isFileDangerous('dog.gif'), false);
assert.strictEqual(isFileDangerous('cat.jpg'), false);
});
it('returns false for documents', () => {
assert.strictEqual(isFileDangerous('resume.docx'), false);
assert.strictEqual(isFileDangerous('price_list.pdf'), false);
});
it('returns true for executable files', () => {
assert.strictEqual(isFileDangerous('run.exe'), true);
assert.strictEqual(isFileDangerous('install.pif'), true);
});
it('returns false for empty filename', () => {
assert.strictEqual(isFileDangerous(''), false);
});
it('returns false for exe at various parts of filename', () => {
assert.strictEqual(isFileDangerous('.exemanifesto.txt'), false);
assert.strictEqual(isFileDangerous('runexe'), false);
assert.strictEqual(isFileDangerous('run_exe'), false);
});
it('returns true for upper-case EXE', () => {
assert.strictEqual(isFileDangerous('run.EXE'), true);
});
});

@ -390,7 +390,6 @@ export type LocalizerKeys =
| 'timerOption_30_seconds'
| 'createAccount'
| 'timerOption_1_minute_abbreviated'
| 'dangerousFileType'
| 'timerOption_12_hours'
| 'unblockToSend'
| 'timerOption_1_minute'

@ -1,6 +1,5 @@
import * as GoogleChrome from './GoogleChrome';
import { arrayBufferToObjectURL } from './arrayBufferToObjectURL';
import { isFileDangerous } from './isFileDangerous';
import { missingCaseError } from './missingCaseError';
import { makeLookup } from './makeLookup';
import * as PasswordUtil from './passwordUtils';
@ -12,7 +11,6 @@ export * from './blockedNumberController';
export {
arrayBufferToObjectURL,
GoogleChrome,
isFileDangerous,
makeLookup,
missingCaseError,
PasswordUtil,

@ -1,6 +0,0 @@
// tslint:disable-next-line max-line-length
const DANGEROUS_FILE_TYPES = /\.(ADE|ADP|APK|BAT|CHM|CMD|COM|CPL|DLL|DMG|EXE|HTA|INS|ISP|JAR|JS|JSE|LIB|LNK|MDE|MSC|MSI|MSP|MST|NSH|PIF|SCR|SCT|SHB|SYS|VB|VBE|VBS|VXD|WSC|WSF|WSH|CAB)$/i;
export function isFileDangerous(fileName: string): boolean {
return DANGEROUS_FILE_TYPES.test(fileName);
}
Loading…
Cancel
Save