rack 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rack might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/HISTORY.md +4 -0
- data/lib/rack.rb +1 -1
- data/lib/rack/request.rb +5 -3
- data/rack.gemspec +1 -1
- data/test/spec_request.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb00d79382a3da4823e22b19a39e44c18b6ecf95
|
4
|
+
data.tar.gz: 5bb320ab78e603bb4da43d757bba382654562f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3ef871417f3da49fac5952395efb126fe540303227f6a1a1f0bedc08b33abfed4cef4a001e788284ca0135eed3e39b0471cd865af78f1b1ef2efcb076ba07c8
|
7
|
+
data.tar.gz: a1fd7d68a5503e67c985089855c2544e10009677949fe6945bd51cfe59796eb5d60879687884b46319ebd7b0858723caa57ee68a4d9cf8f7463b355591905500
|
data/HISTORY.md
CHANGED
data/lib/rack.rb
CHANGED
data/lib/rack/request.rb
CHANGED
@@ -188,7 +188,7 @@ module Rack
|
|
188
188
|
if @env["rack.request.query_string"] == query_string
|
189
189
|
@env["rack.request.query_hash"]
|
190
190
|
else
|
191
|
-
p = parse_query(query_string, '&;')
|
191
|
+
p = parse_query({ :query => query_string, :separator => '&;' })
|
192
192
|
@env["rack.request.query_string"] = query_string
|
193
193
|
@env["rack.request.query_hash"] = p
|
194
194
|
end
|
@@ -212,7 +212,7 @@ module Rack
|
|
212
212
|
form_vars.slice!(-1) if form_vars[-1] == ?\0
|
213
213
|
|
214
214
|
@env["rack.request.form_vars"] = form_vars
|
215
|
-
@env["rack.request.form_hash"] = parse_query(form_vars, '&')
|
215
|
+
@env["rack.request.form_hash"] = parse_query({ :query => form_vars, :separator => '&' })
|
216
216
|
|
217
217
|
@env["rack.input"].rewind
|
218
218
|
end
|
@@ -365,7 +365,9 @@ module Rack
|
|
365
365
|
ip_addresses.reject { |ip| trusted_proxy?(ip) }
|
366
366
|
end
|
367
367
|
|
368
|
-
def parse_query(qs
|
368
|
+
def parse_query(qs)
|
369
|
+
d = '&'
|
370
|
+
qs, d = qs[:query], qs[:separator] if Hash === qs
|
369
371
|
Utils.parse_nested_query(qs, d)
|
370
372
|
end
|
371
373
|
|
data/rack.gemspec
CHANGED
data/test/spec_request.rb
CHANGED
@@ -152,7 +152,7 @@ describe Rack::Request do
|
|
152
152
|
req.POST.should.be.empty
|
153
153
|
req.params.should.equal "foo" => "bar", "quux" => "b", "la" => nil, "wun" => "duh"
|
154
154
|
end
|
155
|
-
|
155
|
+
|
156
156
|
should "limit the keys from the GET query string" do
|
157
157
|
env = Rack::MockRequest.env_for("/?foo=bar")
|
158
158
|
|