diff options
author | mae <git@badat.dev> | 2023-08-05 14:13:49 +0200 |
---|---|---|
committer | mae <git@badat.dev> | 2023-08-05 14:17:04 +0200 |
commit | 48b1e9bdc7382ec6ef33e95f2bd8674ae92f17b2 (patch) | |
tree | 623433efceefe6deead177525714b216f1610829 /lib | |
parent | 17c336de66b757ef90e9e229d086c7b83fb1573e (diff) | |
download | pleroma-48b1e9bdc7382ec6ef33e95f2bd8674ae92f17b2.tar.gz pleroma-48b1e9bdc7382ec6ef33e95f2bd8674ae92f17b2.zip |
Completely disable xml entity resolution
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/xml.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/xml.ex b/lib/pleroma/web/xml.ex index 380a80ab8..64329e4ba 100644 --- a/lib/pleroma/web/xml.ex +++ b/lib/pleroma/web/xml.ex @@ -31,7 +31,7 @@ defmodule Pleroma.Web.XML do |> :binary.bin_to_list() |> :xmerl_scan.string( quiet: true, - fetch_fun: fn _, _ -> raise "Resolving external entities not supported" end + allow_entities: false ) {:ok, doc} |