* test/rexml/test_document.rb (REXMLTests::TestDocument): Group
entity expansion limit related tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e326bb0e5
commit
f2588e1c8e
@ -1,3 +1,8 @@
|
|||||||
|
Sat Nov 15 20:11:34 2014 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
|
* test/rexml/test_document.rb (REXMLTests::TestDocument): Group
|
||||||
|
entity expansion limit related tests.
|
||||||
|
|
||||||
Sat Nov 15 20:09:00 2014 Kouhei Sutou <kou@cozmixng.org>
|
Sat Nov 15 20:09:00 2014 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* test/rexml/test_document.rb (REXMLTests::TestDocument::BomTest):
|
* test/rexml/test_document.rb (REXMLTests::TestDocument::BomTest):
|
||||||
|
@ -32,6 +32,7 @@ EOF
|
|||||||
assert_equal("Hello world!", doc.root.children.first.value)
|
assert_equal("Hello world!", doc.root.children.first.value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class EntityExpansionLimitTest < Test::Unit::TestCase
|
||||||
XML_WITH_NESTED_ENTITY = <<EOF
|
XML_WITH_NESTED_ENTITY = <<EOF
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE member [
|
<!DOCTYPE member [
|
||||||
@ -163,6 +164,7 @@ EOF
|
|||||||
ensure
|
ensure
|
||||||
REXML::Security.entity_expansion_limit = 10000
|
REXML::Security.entity_expansion_limit = 10000
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_tag_in_cdata_with_not_ascii_only_but_ascii8bit_encoding_source
|
def test_tag_in_cdata_with_not_ascii_only_but_ascii8bit_encoding_source
|
||||||
tag = "<b>...</b>"
|
tag = "<b>...</b>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user