summaryrefslogtreecommitdiffstats
path: root/app/controllers/wikis_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/wikis_controller.rb')
-rw-r--r--app/controllers/wikis_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb
index 523b80678..251b2a963 100644
--- a/app/controllers/wikis_controller.rb
+++ b/app/controllers/wikis_controller.rb
@@ -22,7 +22,7 @@ class WikisController < ApplicationController
# Create or update a project's wiki
def edit
@wiki = @project.wiki || Wiki.new(:project => @project)
- @wiki.attributes = params[:wiki]
+ @wiki.safe_attributes = params[:wiki]
@wiki.save if request.post?
render(:update) {|page| page.replace_html "tab-content-wiki", :partial => 'projects/settings/wiki'}
end