From 27780c7327b58811d22bd8975416ad56e6314fa5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 29 Apr 2025 10:06:54 +0400 Subject: [PATCH] Add xml to ip-revealing extensions. In case you put SVG content in an .xml file it shows it in the browser. --- Telegram/SourceFiles/core/mime_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/mime_type.cpp b/Telegram/SourceFiles/core/mime_type.cpp index 5683ef634d..b770195a8c 100644 --- a/Telegram/SourceFiles/core/mime_type.cpp +++ b/Telegram/SourceFiles/core/mime_type.cpp @@ -326,7 +326,7 @@ bool NameTypeAllowsThumbnail(NameType type) { bool IsIpRevealingPath(const QString &filepath) { static const auto kExtensions = [] { - const auto joined = u"htm html svg m4v m3u m3u8 xhtml"_q; + const auto joined = u"htm html svg m4v m3u m3u8 xhtml xml"_q; const auto list = joined.split(' '); return base::flat_set(list.begin(), list.end()); }();