Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFelipe Artur Cardozo <fcardozo@gitlab.com>2018-07-27 00:16:03 +0300
committerFelipe Artur Cardozo <fcardozo@gitlab.com>2018-07-27 00:16:03 +0300
commitbc1b4d9fef7e55f9afffcfaa4f784b984ca97f31 (patch)
tree48c5c0cd09a1870494e4cfccd37b1924ee5af072 /app
parente1d86b75826dc0ef858e31da09ae678155b1984b (diff)
parent2408519e08084f6d81f2628eba6868910ee7fcfa (diff)
Merge branch 'security-fj-missing-csrf-system-hooks' into 'master'
[master] Missing CSRF in System Hooks See merge request gitlab/gitlabhq!2419
Diffstat (limited to 'app')
-rw-r--r--app/helpers/hooks_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/hooks_helper.rb b/app/helpers/hooks_helper.rb
index 551b9cca6b1..0a356ba55d2 100644
--- a/app/helpers/hooks_helper.rb
+++ b/app/helpers/hooks_helper.rb
@@ -10,7 +10,7 @@ module HooksHelper
trigger_human_name = trigger.to_s.tr('_', ' ').camelize
- link_to path, rel: 'nofollow' do
+ link_to path, rel: 'nofollow', method: :post do
content_tag(:span, trigger_human_name)
end
end