actionpack 3.1.5 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionpack might be problematic. Click here for more details.

@@ -1,3 +1,9 @@
1
+ ## Rails 3.1.6 (Jun 12, 2012)
2
+
3
+ * nil is removed from array parameter values
4
+
5
+ CVE-2012-2694
6
+
1
7
  ## Rails 3.1.5 (May 31, 2012) ##
2
8
 
3
9
  * Detect optional glob params when adding non-greedy regexp - closes #4817.
@@ -271,17 +271,19 @@ module ActionDispatch
271
271
 
272
272
  # Remove nils from the params hash
273
273
  def deep_munge(hash)
274
+ keys = hash.keys.find_all { |k| hash[k] == [nil] }
275
+ keys.each { |k| hash[k] = nil }
276
+
274
277
  hash.each_value do |v|
275
278
  case v
276
279
  when Array
277
280
  v.grep(Hash) { |x| deep_munge(x) }
281
+ v.compact!
278
282
  when Hash
279
283
  deep_munge(v)
280
284
  end
281
285
  end
282
286
 
283
- keys = hash.keys.find_all { |k| hash[k] == [nil] }
284
- keys.each { |k| hash[k] = nil }
285
287
  hash
286
288
  end
287
289
 
@@ -2,7 +2,7 @@ module ActionPack
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 5
5
+ TINY = 6
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 5
10
- version: 3.1.5
9
+ - 6
10
+ version: 3.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Heinemeier Hansson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-31 00:00:00 Z
18
+ date: 2012-06-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activesupport
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - "="
27
27
  - !ruby/object:Gem::Version
28
- hash: 9
28
+ hash: 15
29
29
  segments:
30
30
  - 3
31
31
  - 1
32
- - 5
33
- version: 3.1.5
32
+ - 6
33
+ version: 3.1.6
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - "="
43
43
  - !ruby/object:Gem::Version
44
- hash: 9
44
+ hash: 15
45
45
  segments:
46
46
  - 3
47
47
  - 1
48
- - 5
49
- version: 3.1.5
48
+ - 6
49
+ version: 3.1.6
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency