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

ruby-changes:20583

From: naruse <ko1@a...>
Date: Sat, 23 Jul 2011 06:17:02 +0900 (JST)
Subject: [ruby-changes:20583] naruse:r32631 (trunk): Fix r32622.

naruse	2011-07-23 06:16:50 +0900 (Sat, 23 Jul 2011)

  New Revision: 32631

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

  Log:
    Fix r32622.

  Modified files:
    trunk/lib/uri/common.rb

Index: lib/uri/common.rb
===================================================================
--- lib/uri/common.rb	(revision 32630)
+++ lib/uri/common.rb	(revision 32631)
@@ -984,7 +984,7 @@
   # 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/

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