actionpack 3.0.13 → 3.0.14

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.

data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ ## Rails 3.0.14 (Jun 12, 2012)
2
+
3
+ * nil is removed from array parameter values
4
+
5
+ CVE-2012-2694
6
+
1
7
  * Rails 3.0.13 (May 31, 2012)
2
8
 
3
9
  * Strip null bytes from Location header
@@ -262,17 +262,19 @@ module ActionDispatch
262
262
 
263
263
  # Remove nils from the params hash
264
264
  def deep_munge(hash)
265
+ keys = hash.keys.find_all { |k| hash[k] == [nil] }
266
+ keys.each { |k| hash[k] = nil }
267
+
265
268
  hash.each_value do |v|
266
269
  case v
267
270
  when Array
268
271
  v.grep(Hash) { |x| deep_munge(x) }
272
+ v.compact!
269
273
  when Hash
270
274
  deep_munge(v)
271
275
  end
272
276
  end
273
277
 
274
- keys = hash.keys.find_all { |k| hash[k] == [nil] }
275
- keys.each { |k| hash[k] = nil }
276
278
  hash
277
279
  end
278
280
 
@@ -2,7 +2,7 @@ module ActionPack
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 13
5
+ TINY = 14
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 13
10
- version: 3.0.13
9
+ - 14
10
+ version: 3.0.14
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: 29
28
+ hash: 27
29
29
  segments:
30
30
  - 3
31
31
  - 0
32
- - 13
33
- version: 3.0.13
32
+ - 14
33
+ version: 3.0.14
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: 29
44
+ hash: 27
45
45
  segments:
46
46
  - 3
47
47
  - 0
48
- - 13
49
- version: 3.0.13
48
+ - 14
49
+ version: 3.0.14
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency