зеркало из https://github.com/github/ruby.git
* 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:
Родитель
1e326bb0e5
Коммит
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>
|
||||
|
||||
* test/rexml/test_document.rb (REXMLTests::TestDocument::BomTest):
|
||||
|
|
|
@ -32,6 +32,7 @@ EOF
|
|||
assert_equal("Hello world!", doc.root.children.first.value)
|
||||
end
|
||||
|
||||
class EntityExpansionLimitTest < Test::Unit::TestCase
|
||||
XML_WITH_NESTED_ENTITY = <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE member [
|
||||
|
@ -163,6 +164,7 @@ EOF
|
|||
ensure
|
||||
REXML::Security.entity_expansion_limit = 10000
|
||||
end
|
||||
end
|
||||
|
||||
def test_tag_in_cdata_with_not_ascii_only_but_ascii8bit_encoding_source
|
||||
tag = "<b>...</b>"
|
||||
|
|
Загрузка…
Ссылка в новой задаче