aboutsummaryrefslogtreecommitdiff
path: root/test/pleroma/web/xml_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/pleroma/web/xml_test.exs')
-rw-r--r--test/pleroma/web/xml_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pleroma/web/xml_test.exs b/test/pleroma/web/xml_test.exs
new file mode 100644
index 0000000..89d4709
--- /dev/null
+++ b/test/pleroma/web/xml_test.exs
@@ -0,0 +1,10 @@
+defmodule Pleroma.Web.XMLTest do
+ use Pleroma.DataCase, async: true
+
+ alias Pleroma.Web.XML
+
+ test "refuses to load external entities from XML" do
+ data = File.read!("test/fixtures/xml_external_entities.xml")
+ assert(:error == XML.parse_document(data))
+ end
+end