diff --git a/test/xml/test_schema.rb b/test/xml/test_schema.rb index 6cba39abe7..f09678b579 100644 --- a/test/xml/test_schema.rb +++ b/test/xml/test_schema.rb @@ -214,6 +214,21 @@ def test_xsd_with_dtd end end + def test_xsd_import_with_no_systemid + # https://github.com/sparklemotion/nokogiri/pull/2296 + xsd = <<~EOF + + + + + EOF + Nokogiri::XML::Schema(xsd) # assert_nothing_raised + end + describe "CVE-2020-26247" do # https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m let(:schema) do