summaryrefslogtreecommitdiff
path: root/app/views/projects/notes/_form.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-12 19:05:21 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-12 19:05:21 +0200
commit9b7b27ce7216652493648228f2352d1d08836549 (patch)
tree7a9e790a045c39268a90ac2ebe68026404f3af94 /app/views/projects/notes/_form.html.haml
parentc959143ed75b7a97d23d2198f4a34eb2a1455b21 (diff)
downloadgitlab-ce-9b7b27ce7216652493648228f2352d1d08836549.tar.gz
Add authenticity_token: true to multipart forms
Rails 4 does not generate token by default It fixes bug when you get to sign-in page after trying to upload image with comment Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/notes/_form.html.haml')
-rw-r--r--app/views/projects/notes/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/notes/_form.html.haml b/app/views/projects/notes/_form.html.haml
index a742140cf5a..3ef6ed535e0 100644
--- a/app/views/projects/notes/_form.html.haml
+++ b/app/views/projects/notes/_form.html.haml
@@ -1,4 +1,4 @@
-= form_for [@project, @note], remote: true, html: { multipart: true, id: nil, class: "new_note js-new-note-form common-note-form" } do |f|
+= form_for [@project, @note], remote: true, html: { multipart: true, id: nil, class: "new_note js-new-note-form common-note-form" }, authenticity_token: true do |f|
= note_target_fields
= f.hidden_field :commit_id