aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-22 01:39:49 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-22 01:39:49 +0000
commit4102e8cfd51bcc445498ef3578d97672c33337c5 (patch)
tree070ab0d4c1f7b0155508efa90ef0ffa0404d0b37 /lib/rexml
parentdf6db4b6f8eddf294a90e9065fe6440d1c8581b0 (diff)
downloadruby-4102e8cfd51bcc445498ef3578d97672c33337c5.tar.gz
* 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
Diffstat (limited to 'lib/rexml')
-rw-r--r--lib/rexml/attribute.rb2
1 files changed, 1 insertions, 1 deletions
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(/"/, '&quote;')}"^
+ %Q^#@expanded_name="#{to_s().gsub(/"/, '&quot;')}"^
else
"#@expanded_name='#{to_s().gsub(/'/, '&apos;')}'"
end