Completely disable xml entity resolution
This commit is contained in:
parent
17c336de66
commit
48b1e9bdc7
4 changed files with 22 additions and 1 deletions
|
|
@ -3,6 +3,11 @@ defmodule Pleroma.Web.XMLTest do
|
|||
|
||||
alias Pleroma.Web.XML
|
||||
|
||||
test "refuses to parse any entities from XML" do
|
||||
data = File.read!("test/fixtures/xml_billion_laughs.xml")
|
||||
assert(:error == XML.parse_document(data))
|
||||
end
|
||||
|
||||
test "refuses to load external entities from XML" do
|
||||
data = File.read!("test/fixtures/xml_external_entities.xml")
|
||||
assert(:error == XML.parse_document(data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue