Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
9eb7030f
Commit
9eb7030f
authored
Jul 03, 2012
by
Francisco Juan
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'tags/v2.7.2'
parents
a475d02d
8d56d327
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
10-patches.rb
config/initializers/10-patches.rb
+28
-0
CHANGELOG.rdoc
doc/CHANGELOG.rdoc
+4
-0
version.rb
lib/chili_project/version.rb
+1
-1
No files found.
config/initializers/10-patches.rb
View file @
9eb7030f
...
...
@@ -115,4 +115,32 @@ module ActionController
end
end
end
# Backported fix for CVE-2012-2660
# https://groups.google.com/group/rubyonrails-security/browse_thread/thread/f1203e3376acec0f
# TODO: Remove this once we are on Rails >= 3.2.4
require
'action_controller/request'
class
Request
protected
# Remove nils from the params hash
def
deep_munge
(
hash
)
hash
.
each_value
do
|
v
|
case
v
when
Array
v
.
grep
(
Hash
)
{
|
x
|
deep_munge
(
x
)
}
when
Hash
deep_munge
(
v
)
end
end
keys
=
hash
.
keys
.
find_all
{
|
k
|
hash
[
k
]
==
[
nil
]
}
keys
.
each
{
|
k
|
hash
[
k
]
=
nil
}
hash
end
def
parse_query
(
qs
)
deep_munge
(
super
)
end
end
end
doc/CHANGELOG.rdoc
View file @
9eb7030f
= ChiliProject changelog
== 2012-06-09 v2.7.2
* Bug #1025: Rails: Unsafe Query Generation Risk in Ruby on Rails (CVE-2012-2660)
== 2012-04-04 v2.7.1
* Bug #922: Mass assignment
...
...
lib/chili_project/version.rb
View file @
9eb7030f
...
...
@@ -19,7 +19,7 @@ module ChiliProject
MAJOR
=
2
MINOR
=
7
PATCH
=
1
PATCH
=
2
TINY
=
PATCH
# Redmine compat
# Used by semver to define the special version (if any).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment