Completely disable xml entity resolution

This commit is contained in:
mae 2023-08-05 14:13:49 +02:00
commit 48b1e9bdc7
4 changed files with 22 additions and 1 deletions

View file

@ -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}