summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormicael.bergeron <micael.bergeron@solutionstlm.com>2017-09-08 09:30:35 -0400
committerGitLab Development <gitlab@local.local>2017-09-11 15:20:17 +0000
commitd70c3bbc149177037490c404a42896d8b486fbe8 (patch)
tree3f1f609bdb15962055630a10142897ab0bbc132f
parentbc955cfc8e75e17897ab25717176209fefbba915 (diff)
downloadgitlab-ce-d70c3bbc149177037490c404a42896d8b486fbe8.tar.gz
make diff file header html safe when file is renamed
-rw-r--r--app/views/projects/diffs/_file_header.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_file_header.html.haml b/app/views/projects/diffs/_file_header.html.haml
index 73c316472e3..466a628b746 100644
--- a/app/views/projects/diffs/_file_header.html.haml
+++ b/app/views/projects/diffs/_file_header.html.haml
@@ -19,10 +19,10 @@
- if diff_file.renamed_file?
- old_path, new_path = mark_inline_diffs(diff_file.old_path, diff_file.new_path)
%strong.file-title-name.has-tooltip{ data: { title: diff_file.old_path, container: 'body' } }
- = old_path
+ != old_path
&rarr;
%strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path, container: 'body' } }
- = new_path
+ != new_path
- else
%strong.file-title-name.has-tooltip{ data: { title: diff_file.file_path, container: 'body' } }
= diff_file.file_path