Skip to content

Commit

Permalink
Add mxc to allowed schemes in hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Feb 18, 2024
1 parent 4c53d18 commit 915a2af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/htmlfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 915a2af

Please sign in to comment.