[ruby-cvs:70418] normal:r63328 (trunk): ext/cgi/escape: preserve String subclass in result

normal at ruby-lang.org normal at ruby-lang.org
Thu May 3 08:18:55 JST 2018


normal	2018-05-03 08:18:55 +0900 (Thu, 03 May 2018)

  New Revision: 63328

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

  Log:
    ext/cgi/escape: preserve String subclass in result
    
    * ext/cgi/escape/escape.c (optimized_escape_html): use rb_str_new_with_class
      (optimized_unescape_html): ditto
      (optimized_escape): ditto
      (optimized_unescape): ditto
    * test/cgi/test_cgi_util.rb (test_escape_string_subclass): new test
      [ruby-core:86847] [Bug #14732]

  Modified files:
    trunk/ext/cgi/escape/escape.c
    trunk/test/cgi/test_cgi_util.rb


More information about the ruby-cvs mailing list