actionview 4.1.14.1 → 4.1.14.2

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c1584ed23b0d7430632b83ed06cc2fc38212e4e
4
- data.tar.gz: 47f940efff8a3065e971f34191e7bdb05a86c8b1
3
+ metadata.gz: 89d7128f5c566c491b781cf337ae549052608506
4
+ data.tar.gz: de5e9a7ba01502a505654b915610d7189e796675
5
5
  SHA512:
6
- metadata.gz: 5658503cad9e3b25ca5542cd39755ce2f7c63e0214f1eb8a9af11a7130cc42211eb167f9226915c17fcd8863d8944697b3035bbb27d6b35d144de9a14ce0d775
7
- data.tar.gz: 4350674e46a91e253a2eec43a20a355ac8412eee11235fd02dd61370721250efbe2de06d9ab3ead65be75007fd213d3f8e83f9759f63e6f43ca1fce5cd5c06bc
6
+ metadata.gz: 70a985c0058ac987fd7aae56e733e9e5e275207faed7df4e081701c43c71a04bffb618385db03ccba8c3eb2689949fe86f645d54d59dafa529456971205015cf
7
+ data.tar.gz: 07f9aef43484a6a5faa5322d33b5536bb62869d110e1a27803a5b45f5807f789d99f001c917e6aebcf52b7c8933275b11ee25708e87ee7dbe674f95a3512e43b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## Rails 4.1.14.2 (February 26, 2016) ##
2
+
3
+ * Do not allow render with unpermitted parameter.
4
+
5
+ Fixes CVE-2016-2098.
6
+
7
+ *Arthur Neves*
8
+
9
+
10
+ * Changed the meaning of `render "foo/bar"`.
11
+
12
+ Previously, calling `render "foo/bar"` in a controller action is equivalent
13
+ to `render file: "foo/bar"`. This has been changed to mean
14
+ `render template: "foo/bar"` instead. If you need to render a file, please
15
+ change your code to use the explicit form (`render file: "foo/bar"`) instead.
16
+
17
+ Fixes CVE-2016-2097.
18
+
19
+ *Eileen Uchitelle*
20
+
21
+
22
+ ## Rails 4.2.5.1 (January 25, 2015) ##
23
+
24
+ * No changes.
25
+
26
+
1
27
  ## Rails 4.1.14 (November 12, 2015) ##
2
28
 
3
29
  * Fix `mail_to` when called with `nil` as argument.
@@ -8,7 +8,7 @@ module ActionView
8
8
  MAJOR = 4
9
9
  MINOR = 1
10
10
  TINY = 14
11
- PRE = "1"
11
+ PRE = "2"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -17,6 +17,10 @@ module ActionView
17
17
 
18
18
  # Main render entry point shared by AV and AC.
19
19
  def render(context, options)
20
+ if options.respond_to?(:permitted?) && !options.permitted?
21
+ raise ArgumentError, "render parameters are not permitted"
22
+ end
23
+
20
24
  if options.key?(:partial)
21
25
  render_partial(context, options)
22
26
  else
@@ -107,7 +107,7 @@ module ActionView
107
107
  end
108
108
 
109
109
  # Normalize args by converting render "foo" to render :action => "foo" and
110
- # render "foo/bar" to render :file => "foo/bar".
110
+ # render "foo/bar" to render :template => "foo/bar".
111
111
  # :api: private
112
112
  def _normalize_args(action=nil, options={})
113
113
  options = super(action, options)
@@ -117,7 +117,7 @@ module ActionView
117
117
  options = action
118
118
  when String, Symbol
119
119
  action = action.to_s
120
- key = action.include?(?/) ? :file : :action
120
+ key = action.include?(?/) ? :template : :action
121
121
  options[key] = action
122
122
  else
123
123
  options[:partial] = action
@@ -129,8 +129,8 @@ module ActionView
129
129
  # This is what child classes implement. No defaults are needed
130
130
  # because Resolver guarantees that the arguments are present and
131
131
  # normalized.
132
- def find_templates(name, prefix, partial, details)
133
- raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details) method"
132
+ def find_templates(name, prefix, partial, details, outside_app_allowed = false)
133
+ raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details, outside_app_allowed) method"
134
134
  end
135
135
 
136
136
  # Helpers that builds a path. Useful for building virtual paths.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.14.1
4
+ version: 4.1.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.14.1
19
+ version: 4.1.14.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.14.1
26
+ version: 4.1.14.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 4.1.14.1
61
+ version: 4.1.14.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 4.1.14.1
68
+ version: 4.1.14.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activemodel
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 4.1.14.1
75
+ version: 4.1.14.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 4.1.14.1
82
+ version: 4.1.14.2
83
83
  description: Simple, battle-tested conventions and helpers for building web pages.
84
84
  email: david@loudthinking.com
85
85
  executables: []