From 915a2af13818a8525e9d2087427b220d14dc0ebb Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 18 Feb 2024 20:01:10 +0100 Subject: [PATCH] Add mxc to allowed schemes in hyperlinks See https://github.com/matrix-org/matrix-spec-proposals/pull/2398 --- client/htmlfilter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/htmlfilter.cpp b/client/htmlfilter.cpp index 3c29e55f..6deeec63 100644 --- a/client/htmlfilter.cpp +++ b/client/htmlfilter.cpp @@ -73,8 +73,9 @@ static const PassList passLists[] = { //, { "code", { "class" /* must start with 'language-' */ } } // Special case }; -static QStringView const permittedSchemes[] { - u"http:", u"https:", u"ftp:", u"mailto:", u"magnet:", u"matrix:" +static QStringView const permittedSchemes[]{ + u"http:", u"https:", u"ftp:", u"mailto:", + u"magnet:", u"matrix:", u"mxc:" /* MSC2398 */ }; static const auto htmlColorAttr = u"color";