diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-22 01:39:49 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-22 01:39:49 +0000 |
commit | 95c78413f9fd5fa20e350fe6286831124aa787a0 (patch) | |
tree | 070ab0d4c1f7b0155508efa90ef0ffa0404d0b37 | |
parent | 0ad3557d81dce743dae72944c26a659829137e50 (diff) |
* lib/rexml/attribute.rb (REXML::Attribute#to_string): Fix wrong
entry reference name of double quote.
[Bug#12609][ruby-core:76509]
Patch by Joseph Marrero. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/rexml/attribute.rb | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Fri Jul 22 10:35:35 2016 Kouhei Sutou <kou@cozmixng.org> + + * lib/rexml/attribute.rb (REXML::Attribute#to_string): Fix wrong + entry reference name of double quote. + [Bug#12609][ruby-core:76509] + Patch by Joseph Marrero. Thanks!!! + Fri Jul 22 10:32:13 2016 Martin Duerst <duerst@it.aoyama.ac.jp> * template/unicode_norm_gen.tmpl: Remove diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb index e9917cf52d..ca5984e178 100644 --- a/lib/rexml/attribute.rb +++ b/lib/rexml/attribute.rb @@ -110,7 +110,7 @@ module REXML # b.to_string # -> "ns:x='y'" def to_string if @element and @element.context and @element.context[:attribute_quote] == :quote - %Q^#@expanded_name="#{to_s().gsub(/"/, '"e;')}"^ + %Q^#@expanded_name="#{to_s().gsub(/"/, '"')}"^ else "#@expanded_name='#{to_s().gsub(/'/, ''')}'" end |