diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 21:16:50 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 21:16:50 +0000 |
commit | 93177c1e5c3906abf14472ae0b905d8b5c72ce1b (patch) | |
tree | d6e881ac4dbdd13c51ef4dadb8f1662f13cc22e6 | |
parent | 201179fc2ad9c31395addd929989bcce0fd43c07 (diff) | |
download | ruby-93177c1e5c3906abf14472ae0b905d8b5c72ce1b.tar.gz |
Fix r32622.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 = [] |