diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 21:17:36 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 21:17:36 +0000 |
commit | 6c2e145ee8f3de7c5fd3ab92fd14ae7a8ca0bd00 (patch) | |
tree | babd1eb25f3225a9156152c67a2101aaf247ecca /lib/uri | |
parent | b44970a0b738cf63f888e8d55c82f63b0e1af346 (diff) |
merge revision(s) 32631:
------------------------------------------------------------------------
r32631 | naruse | 2011-07-23 06:16:50 +0900 (Sat, 23 Jul 2011) | 1 line
Fix r32622.
------------------------------------------------------------------------
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri')
-rw-r--r-- | lib/uri/common.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 8b9e1e3695..f23fe98d4f 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -984,7 +984,7 @@ module URI # 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 = [] |