actionpack 3.2.4.rc1 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- data/CHANGELOG.md +14 -1
- data/lib/action_dispatch/http/request.rb +22 -0
- data/lib/action_pack/version.rb +1 -1
- metadata +12 -20
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## Rails 3.2.4 (
|
1
|
+
## Rails 3.2.4 (May 31, 2012) ##
|
2
2
|
|
3
3
|
* Deprecate old APIs for highlight, excerpt and word_wrap *Jeremy Walker*
|
4
4
|
|
@@ -10,6 +10,19 @@
|
|
10
10
|
|
11
11
|
* Deprecate `button_to_function` and `link_to_function` helpers. *Rafael Mendonça França*
|
12
12
|
|
13
|
+
* Don't break Haml with textarea newline fix. GH #393, #4000, #5190, #5191
|
14
|
+
|
15
|
+
* Fix options handling on labels. GH #2492, #5614
|
16
|
+
|
17
|
+
* Added config.action_view.embed_authenticity_token_in_remote_forms to deal
|
18
|
+
with regression from 16ee611fa
|
19
|
+
|
20
|
+
* Set rendered_format when doing render :inline. GH #5632
|
21
|
+
|
22
|
+
* Fix the redirect when it receive blocks with arity of 1. Closes #5677
|
23
|
+
|
24
|
+
* Strip [nil] from parameters hash. Thanks to Ben Murphy for
|
25
|
+
reporting this! CVE-2012-2660
|
13
26
|
|
14
27
|
## Rails 3.2.3 (March 30, 2012) ##
|
15
28
|
|
@@ -247,6 +247,28 @@ module ActionDispatch
|
|
247
247
|
LOCALHOST.any? { |local_ip| local_ip === remote_addr && local_ip === remote_ip }
|
248
248
|
end
|
249
249
|
|
250
|
+
protected
|
251
|
+
|
252
|
+
# Remove nils from the params hash
|
253
|
+
def deep_munge(hash)
|
254
|
+
hash.each_value do |v|
|
255
|
+
case v
|
256
|
+
when Array
|
257
|
+
v.grep(Hash) { |x| deep_munge(x) }
|
258
|
+
when Hash
|
259
|
+
deep_munge(v)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
keys = hash.keys.find_all { |k| hash[k] == [nil] }
|
264
|
+
keys.each { |k| hash[k] = nil }
|
265
|
+
hash
|
266
|
+
end
|
267
|
+
|
268
|
+
def parse_query(qs)
|
269
|
+
deep_munge(super)
|
270
|
+
end
|
271
|
+
|
250
272
|
private
|
251
273
|
|
252
274
|
def check_method(name)
|
data/lib/action_pack/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 7
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
9
|
- 4
|
10
|
-
|
11
|
-
- 1
|
12
|
-
version: 3.2.4.rc1
|
10
|
+
version: 3.2.4
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- David Heinemeier Hansson
|
@@ -17,7 +15,7 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2012-05-
|
18
|
+
date: 2012-05-31 00:00:00 Z
|
21
19
|
dependencies:
|
22
20
|
- !ruby/object:Gem::Dependency
|
23
21
|
name: activesupport
|
@@ -27,14 +25,12 @@ dependencies:
|
|
27
25
|
requirements:
|
28
26
|
- - "="
|
29
27
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
28
|
+
hash: 7
|
31
29
|
segments:
|
32
30
|
- 3
|
33
31
|
- 2
|
34
32
|
- 4
|
35
|
-
|
36
|
-
- 1
|
37
|
-
version: 3.2.4.rc1
|
33
|
+
version: 3.2.4
|
38
34
|
type: :runtime
|
39
35
|
version_requirements: *id001
|
40
36
|
- !ruby/object:Gem::Dependency
|
@@ -45,14 +41,12 @@ dependencies:
|
|
45
41
|
requirements:
|
46
42
|
- - "="
|
47
43
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
44
|
+
hash: 7
|
49
45
|
segments:
|
50
46
|
- 3
|
51
47
|
- 2
|
52
48
|
- 4
|
53
|
-
|
54
|
-
- 1
|
55
|
-
version: 3.2.4.rc1
|
49
|
+
version: 3.2.4
|
56
50
|
type: :runtime
|
57
51
|
version_requirements: *id002
|
58
52
|
- !ruby/object:Gem::Dependency
|
@@ -404,14 +398,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
404
398
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
405
399
|
none: false
|
406
400
|
requirements:
|
407
|
-
- - "
|
401
|
+
- - ">="
|
408
402
|
- !ruby/object:Gem::Version
|
409
|
-
hash:
|
403
|
+
hash: 3
|
410
404
|
segments:
|
411
|
-
-
|
412
|
-
|
413
|
-
- 1
|
414
|
-
version: 1.3.1
|
405
|
+
- 0
|
406
|
+
version: "0"
|
415
407
|
requirements:
|
416
408
|
- none
|
417
409
|
rubyforge_project:
|