[前][次][番号順一覧][スレッド一覧]

ruby-changes:43653

From: kou <ko1@a...>
Date: Fri, 22 Jul 2016 10:39:53 +0900 (JST)
Subject: [ruby-changes:43653] kou:r55726 (trunk): * lib/rexml/attribute.rb (REXML::Attribute#to_string): Fix wrong

kou	2016-07-22 10:39:49 +0900 (Fri, 22 Jul 2016)

  New Revision: 55726

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55726

  Log:
    * 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!!!

  Modified files:
    trunk/ChangeLog
    trunk/lib/rexml/attribute.rb
Index: lib/rexml/attribute.rb
===================================================================
--- lib/rexml/attribute.rb	(revision 55725)
+++ lib/rexml/attribute.rb	(revision 55726)
@@ -110,7 +110,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/attribute.rb#L110
     #  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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55725)
+++ ChangeLog	(revision 55726)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul 22 10:35:35 2016  Kouhei Sutou  <kou@c...>
+
+	* 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@i...>
 
 	* template/unicode_norm_gen.tmpl: Remove

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]