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
ea3ff66b
Commit
ea3ff66b
authored
13 years ago
by
Jean-Philippe Lang
Committed by
Holger Just
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use safe_attributes= just like in #create. (#922)
parent
ee99b2de
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/projects_controller.rb
+2
-1
2 additions, 1 deletion
app/controllers/projects_controller.rb
with
2 additions
and
1 deletion
app/controllers/projects_controller.rb
+
2
−
1
View file @
ea3ff66b
...
...
@@ -59,7 +59,8 @@ class ProjectsController < ApplicationController
def
new
@issue_custom_fields
=
IssueCustomField
.
find
(
:all
,
:order
=>
"
#{
CustomField
.
table_name
}
.position"
)
@trackers
=
Tracker
.
all
@project
=
Project
.
new
(
params
[
:project
])
@project
=
Project
.
new
@project
.
safe_attributes
=
params
[
:project
]
end
verify
:method
=>
:post
,
:only
=>
:create
,
:render
=>
{
:nothing
=>
true
,
:status
=>
:method_not_allowed
}
...
...
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