Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OHR Support
Manage
Activity
Members
Labels
Plan
Issues
97
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
OHR Support
Commits
9eb7030f
Commit
9eb7030f
authored
12 years ago
by
Francisco Juan
Browse files
Options
Downloads
Plain Diff
Merge tag 'tags/v2.7.2'
parents
a475d02d
8d56d327
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/initializers/10-patches.rb
+28
-0
28 additions, 0 deletions
config/initializers/10-patches.rb
doc/CHANGELOG.rdoc
+4
-0
4 additions, 0 deletions
doc/CHANGELOG.rdoc
lib/chili_project/version.rb
+1
-1
1 addition, 1 deletion
lib/chili_project/version.rb
with
33 additions
and
1 deletion
config/initializers/10-patches.rb
+
28
−
0
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
This diff is collapsed.
Click to expand it.
doc/CHANGELOG.rdoc
+
4
−
0
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
...
...
This diff is collapsed.
Click to expand it.
lib/chili_project/version.rb
+
1
−
1
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).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment