Add xml to ip-revealing extensions.

In case you put SVG content in an .xml file it shows it in the browser.
This commit is contained in:
John Preston 2025-04-29 10:06:54 +04:00
parent 100a8882f1
commit 27780c7327

View file

@ -326,7 +326,7 @@ bool NameTypeAllowsThumbnail(NameType type) {
bool IsIpRevealingPath(const QString &filepath) { bool IsIpRevealingPath(const QString &filepath) {
static const auto kExtensions = [] { 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(' '); const auto list = joined.split(' ');
return base::flat_set<QString>(list.begin(), list.end()); return base::flat_set<QString>(list.begin(), list.end());
}(); }();