diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 14:54:58 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 14:54:58 +0000 |
commit | bc8a273ec21c5631bbe0d4cbded7ce6355098818 (patch) | |
tree | 641531be7f93638ce9a3a9cf26dc828c7440a5cc /lib | |
parent | e877f7e217fd3fd4327c3c06a934c8bd145caebe (diff) |
merge revision(s) 23504:
* lib/rexml/text.rb (REXML::Text.normalize): call to_s for input.
[ruby-talk:337069]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rexml/text.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 2bc00429b3..a4a30b6d54 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -286,7 +286,7 @@ module REXML EREFERENCE = /&(?!#{Entity::NAME};)/ # Escapes all possible entities def Text::normalize( input, doctype=nil, entity_filter=nil ) - copy = input + copy = input.to_s # Doing it like this rather than in a loop improves the speed #copy = copy.gsub( EREFERENCE, '&' ) copy = copy.gsub( "&", "&" ) |