summaryrefslogtreecommitdiffstats
path: root/lib/rexml/entity.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 13:41:38 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 13:41:38 +0000
commit8b244d063f8f71bef9d7cb98dabf6889e55897d8 (patch)
tree72501682058f2c6d291f7e9ff0b80f2200b46347 /lib/rexml/entity.rb
parent5a6a084a976a5c5cc8654a902906b812e6d101d5 (diff)
downloadruby-8b244d063f8f71bef9d7cb98dabf6889e55897d8.tar.gz
ruby-8b244d063f8f71bef9d7cb98dabf6889e55897d8.tar.xz
ruby-8b244d063f8f71bef9d7cb98dabf6889e55897d8.zip
* lib/rexml/document.rb: limit entity expansion.
* lib/rexml/entity.rb: ditto. * test/rexml/test_document.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/entity.rb')
-rw-r--r--lib/rexml/entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rexml/entity.rb b/lib/rexml/entity.rb
index 1c6a25c41..dc2249f10 100644
--- a/lib/rexml/entity.rb
+++ b/lib/rexml/entity.rb
@@ -73,6 +73,7 @@ module REXML
# all entities -- both %ent; and &ent; entities. This differs from
# +value()+ in that +value+ only replaces %ent; entities.
def unnormalized
+ document.record_entity_expansion
v = value()
return nil if v.nil?
@unnormalized = Text::unnormalize(v, parent)