1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* NEWS: added an entry for REXML.

* lib/rexml/document.rb: fixed typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2008-09-13 02:14:39 +00:00
parent f4d924f491
commit 16f558a281
3 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Sat Sep 13 11:13:18 2008 Shugo Maeda <shugo@ruby-lang.org>
* NEWS: added an entry for REXML.
* lib/rexml/document.rb: fixed typo.
Sat Sep 13 11:05:38 2008 Shugo Maeda <shugo@ruby-lang.org>
* lib/rexml/document.rb: limit entity expansion. Thanks, Luka

9
NEWS
View file

@ -49,6 +49,15 @@ with all sufficient information, see the ChangeLog file.
* raise an exception not returns nil for invalid feed making.
* requires block.
* REXML
* REXML::Document.entity_expansion_limit=
New method to set the entity expansion limit. By default the limit is
set to 10000. See the following URL for details.
http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
== Changes since the 1.8.6 release
=== Configuration changes

View file

@ -203,12 +203,12 @@ module REXML
@@entity_expansion_limit = 10_000
# Set the entity expansion limit. By defualt the limit is set to 10000.
# Set the entity expansion limit. By default the limit is set to 10000.
def Document::entity_expansion_limit=( val )
@@entity_expansion_limit = val
end
# Get the entity expansion limit. By defualt the limit is set to 10000.
# Get the entity expansion limit. By default the limit is set to 10000.
def Document::entity_expansion_limit
return @@entity_expansion_limit
end