diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-10-16 03:00:37 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-10-16 03:00:37 +0200 |
commit | 50e0a9ae56ad2704240956d1f93cc04bafcb8b75 (patch) | |
tree | 16c19fa1f5d0a8cd3d2ef5dc37d6720235c28344 /lib | |
parent | 117e005409c75c2d53df88fa19211823bdf3d61e (diff) | |
download | pleroma-50e0a9ae56ad2704240956d1f93cc04bafcb8b75.tar.gz |
lib/pleroma/html.ex: Fix scheme lists
Gosh please don’t break ourselves…
Also this is copy-paste of the list in lib/pleroma/formatter.ex,
I think this should be put in a common variable, but where?
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/html.ex | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex index cf18f070c..f86855671 100644 --- a/lib/pleroma/html.ex +++ b/lib/pleroma/html.ex @@ -39,7 +39,22 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do require HtmlSanitizeEx.Scrubber.Meta alias HtmlSanitizeEx.Scrubber.Meta - @valid_schemes ["http", "https"] + @valid_schemes [ + "https://", + "http://", + "dat://", + "dweb://", + "gopher://", + "ipfs://", + "ipns://", + "irc:", + "ircs:", + "magnet:", + "mailto:", + "mumble:", + "ssb://", + "xmpp:" + ] Meta.remove_cdata_sections_before_scrub() Meta.strip_comments() |