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

ruby-changes:14045

From: shyouhei <ko1@a...>
Date: Thu, 19 Nov 2009 18:20:22 +0900 (JST)
Subject: [ruby-changes:14045] Ruby:r25856 (ruby_1_8_7): merge revision(s) 25230:25233:

shyouhei	2009-11-19 18:08:10 +0900 (Thu, 19 Nov 2009)

  New Revision: 25856

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25856

  Log:
    merge revision(s) 25230:25233:
    * lib/cgi.rb (CGI.unescapeHTML): fix for hex values 80-FF,
      single-byte hex entity encodings from 80-FF are valid HTML.
    [ruby-core:25702]

  Modified files:
    branches/ruby_1_8_7/ChangeLog
    branches/ruby_1_8_7/lib/cgi.rb
    branches/ruby_1_8_7/version.h

Index: ruby_1_8_7/ChangeLog
===================================================================
--- ruby_1_8_7/ChangeLog	(revision 25855)
+++ ruby_1_8_7/ChangeLog	(revision 25856)
@@ -1,3 +1,9 @@
+Thu Nov 19 18:03:31 2009  Takeyuki FUJIOKA  <xibbar@r...>
+
+	* lib/cgi.rb (CGI.unescapeHTML): fix for hex values 80-FF,
+	  single-byte hex entity encodings from 80-FF are valid HTML.
+		[ruby-core:25702]
+
 Thu Nov 19 15:34:40 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* io.c (rb_io_fptr_finalize): free fptr to avoid memory leaks.
Index: ruby_1_8_7/version.h
===================================================================
--- ruby_1_8_7/version.h	(revision 25855)
+++ ruby_1_8_7/version.h	(revision 25856)
@@ -2,7 +2,7 @@
 #define RUBY_RELEASE_DATE "2009-11-19"
 #define RUBY_VERSION_CODE 187
 #define RUBY_RELEASE_CODE 20091119
-#define RUBY_PATCHLEVEL 214
+#define RUBY_PATCHLEVEL 215
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8
Index: ruby_1_8_7/lib/cgi.rb
===================================================================
--- ruby_1_8_7/lib/cgi.rb	(revision 25855)
+++ ruby_1_8_7/lib/cgi.rb	(revision 25856)
@@ -385,7 +385,7 @@
           end
         end
       when /\A#x([0-9a-f]+)\z/ni then
-        if $1.hex < 256
+        if $1.hex < 128
           $1.hex.chr
         else
           if $1.hex < 65536 and ($KCODE[0] == ?u or $KCODE[0] == ?U)

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

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