Escape project's name in cross project label

This commit is contained in:
Grzegorz Bizon 2016-03-05 16:01:05 +01:00
parent fa639df5c7
commit b3f533c3a7

View file

@ -65,7 +65,7 @@ module LabelsHelper
def render_colored_cross_project_label(label)
label_suffix = label.project.name_with_namespace
label_suffix = " <i>in #{label_suffix}</i>"
label_suffix = " <i>in #{escape_once(label_suffix)}</i>"
render_colored_label(label, label_suffix)
end