summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2023-08-05 08:13:03 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2023-08-05 08:13:03 +0000
commitd0f7a5c4f53f631703cc108b95c52a934c122873 (patch)
tree08a1a83efc47a77f2e44b16258e91b7a2b557b39 /lib
parent1062185ba03ffa03f0dfcfc11f948285b2ffd610 (diff)
parent4099ddb3dc5840fa10cff743d87464acf7898a80 (diff)
downloadpleroma-d0f7a5c4f53f631703cc108b95c52a934c122873.tar.gz
pleroma-d0f7a5c4f53f631703cc108b95c52a934c122873.zip
Merge branch 'mergeback/2.5.4' into 'develop'
Mergeback: 2.5.4 See merge request pleroma/pleroma!3930
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/xml.ex5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/web/xml.ex b/lib/pleroma/web/xml.ex
index b699446b0..380a80ab8 100644
--- a/lib/pleroma/web/xml.ex
+++ b/lib/pleroma/web/xml.ex
@@ -29,7 +29,10 @@ defmodule Pleroma.Web.XML do
{doc, _rest} =
text
|> :binary.bin_to_list()
- |> :xmerl_scan.string(quiet: true)
+ |> :xmerl_scan.string(
+ quiet: true,
+ fetch_fun: fn _, _ -> raise "Resolving external entities not supported" end
+ )
{:ok, doc}
rescue