diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-01 09:04:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-01 09:04:59 +0000 |
commit | b2e1abee084bfd9f96da4bcb3fa26865d7fe6b6d (patch) | |
tree | 4f978a0fa2167d23e671b5973ae14a5113131ac8 /app | |
parent | 23330db102f66781cc9a22cd006433cfcbd13863 (diff) | |
download | gitlab-ce-b2e1abee084bfd9f96da4bcb3fa26865d7fe6b6d.tar.gz |
Add latest changes from gitlab-org/security/gitlab@13-8-stable-ee
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline_container.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline_container.vue b/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline_container.vue index dffe3cab904..99b55c0f9ee 100644 --- a/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline_container.vue +++ b/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline_container.vue @@ -1,5 +1,6 @@ <script> import { isNumber } from 'lodash'; +import { sanitize } from '~/lib/dompurify'; import ArtifactsApp from './artifacts_list_app.vue'; import MrWidgetContainer from './mr_widget_container.vue'; import MrWidgetPipeline from './mr_widget_pipeline.vue'; @@ -40,7 +41,7 @@ export default { return this.isPostMerge ? this.mr.targetBranch : this.mr.sourceBranch; }, branchLink() { - return this.isPostMerge ? this.mr.targetBranch : this.mr.sourceBranchLink; + return this.isPostMerge ? sanitize(this.mr.targetBranch) : this.mr.sourceBranchLink; }, deployments() { return this.isPostMerge ? this.mr.postMergeDeployments : this.mr.deployments; |