Skip to content

Commit

Permalink
Merge pull request #41027 from flavorjones/flavorjones-fix-nokogiri-x…
Browse files Browse the repository at this point in the history
…ml-mini-test

Remove leading whitespace from the XML under test
  • Loading branch information
kamipo committed Jan 6, 2021
2 parents 7144082 + 76bfda8 commit 17aa899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/test/xml_mini/xml_mini_engine_test.rb
Expand Up @@ -50,7 +50,7 @@ def test_file_from_xml

def test_exception_thrown_on_expansion_attack
assert_raise expansion_attack_error do
Hash.from_xml(<<-eoxml)
Hash.from_xml(<<~eoxml)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE member [
<!ENTITY a "&b;&b;&b;&b;&b;&b;&b;&b;&b;&b;">
Expand Down

0 comments on commit 17aa899

Please sign in to comment.