Commit 88e0e7d0 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch...

Merge branch '241955-remove-v-html-from-app-assets-javascripts-diffs-components-diff_file_header-vue' into 'master'

Remove v-html from app/assets/javascripts/diffs/components/diff_file_header.vue

Closes #241955

See merge request gitlab-org/gitlab!41483
parents 6a35648e ba640cfb
<script>
/* eslint-disable vue/no-v-html */
import { escape } from 'lodash';
import { mapActions, mapGetters } from 'vuex';
import {
......@@ -219,16 +218,16 @@ export default {
<span v-if="isFileRenamed">
<strong
v-gl-tooltip
v-safe-html="diffFile.old_path_html"
:title="diffFile.old_path"
class="file-title-name"
v-html="diffFile.old_path_html"
></strong>
<strong
v-gl-tooltip
v-safe-html="diffFile.new_path_html"
:title="diffFile.new_path"
class="file-title-name"
v-html="diffFile.new_path_html"
></strong>
</span>
......@@ -296,9 +295,9 @@ export default {
<a
v-if="diffFile.replaced_view_path"
ref="replacedFileButton"
v-safe-html="viewReplacedFileButtonText"
:href="diffFile.replaced_view_path"
class="btn view-file"
v-html="viewReplacedFileButtonText"
>
</a>
<gl-deprecated-button
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment