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?
This commit is contained in:
Haelwenn (lanodan) Monnier 2018-10-16 03:00:37 +02:00
parent 117e005409
commit 50e0a9ae56
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -39,7 +39,22 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do
require HtmlSanitizeEx.Scrubber.Meta require HtmlSanitizeEx.Scrubber.Meta
alias 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.remove_cdata_sections_before_scrub()
Meta.strip_comments() Meta.strip_comments()