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:
authorPaul Slaughter <pslaughter@gitlab.com>2019-02-26 17:43:43 +0300
committerPaul Slaughter <pslaughter@gitlab.com>2019-03-21 19:04:59 +0300
commit5f338ce9ebacfbf13daf435a845ce0b3da9c7e06 (patch)
treec7b2f42496a7e031dca06fb4d4b4ae85b7999a36 /app
parent2f25e43662addc546605cb161396a3fad299ecdb (diff)
Fix XSS in resolve conflicts form
The issue arose when the branch name contained Vue template JavaScript. The fix is to use `v-pre` which disables Vue compilation in a template.
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/merge_requests/conflicts/_submit_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/conflicts/_submit_form.html.haml b/app/views/projects/merge_requests/conflicts/_submit_form.html.haml
index 8181267184a..55c89f137c5 100644
--- a/app/views/projects/merge_requests/conflicts/_submit_form.html.haml
+++ b/app/views/projects/merge_requests/conflicts/_submit_form.html.haml
@@ -6,7 +6,7 @@
.form-group.row
.col-md-4
%h4= _('Resolve conflicts on source branch')
- .resolve-info
+ .resolve-info{ "v-pre": true }
= translation.html_safe
.col-md-8
%label.label-bold{ "for" => "commit-message" }