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

ruby-changes:35010

From: hone <ko1@a...>
Date: Thu, 7 Aug 2014 14:00:08 +0900 (JST)
Subject: [ruby-changes:35010] hone:r47093 (ruby_1_9_2): Fix r32622.

hone	2014-08-07 13:59:56 +0900 (Thu, 07 Aug 2014)

  New Revision: 47093

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

  Log:
    Fix r32622.

  Modified files:
    branches/ruby_1_9_2/lib/uri/common.rb
Index: ruby_1_9_2/lib/uri/common.rb
===================================================================
--- ruby_1_9_2/lib/uri/common.rb	(revision 47092)
+++ ruby_1_9_2/lib/uri/common.rb	(revision 47093)
@@ -822,7 +822,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/ruby_1_9_2/lib/uri/common.rb#L822
   # See URI.decode_www_form_component, URI.encode_www_form
   def self.decode_www_form(str, enc=Encoding::UTF_8)
     return [] if str.empty?
-    unless /\A#{WFKV_}*=#{WFKV_}*(?:[;&]#{WFKV_}*=#{WFKV_}*)*\z/o =~ str
+    unless /\A#{WFKV_}=#{WFKV_}(?:[;&]#{WFKV_}=#{WFKV_})*\z/o =~ str
       raise ArgumentError, "invalid data of application/x-www-form-urlencoded (#{str})"
     end
     ary = []

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

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