summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejandroluis24@gmail.com>2016-04-04 23:09:44 -0300
committerAlejandro Rodríguez <alejandroluis24@gmail.com>2016-04-20 22:12:43 -0300
commit1ff896f2bf5d06d0d772fd0df98bf43edf107373 (patch)
treee8bd284dc13fdac270f05123778b8a6fe712b8a0 /lib
parent6d9794d42a7bea1150374c76fd3ce5521a44e58e (diff)
downloadgitlab-ce-1ff896f2bf5d06d0d772fd0df98bf43edf107373.tar.gz
Escaping the `object_link_text` on cross project milestone references
Diffstat (limited to 'lib')
-rw-r--r--lib/banzai/filter/milestone_reference_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/milestone_reference_filter.rb b/lib/banzai/filter/milestone_reference_filter.rb
index 556087c4880..aea1abf3b8e 100644
--- a/lib/banzai/filter/milestone_reference_filter.rb
+++ b/lib/banzai/filter/milestone_reference_filter.rb
@@ -39,7 +39,7 @@ module Banzai
if context[:project] == object.project
super
else
- "#{super} <i>in #{escape_once(object.project.name_with_namespace)}</i>".
+ "#{escape_once(super)} <i>in #{escape_once(object.project.name_with_namespace)}</i>".
html_safe
end
end