The actual link should be URI escaped, not HTML escaped.

This commit is contained in:
Steven R. Baker 2019-05-13 18:59:39 +02:00
parent e84d82e5c8
commit 1461a3a10c
2 changed files with 4 additions and 3 deletions

View file

@ -13,7 +13,7 @@ module RenderingHelper
# do not change string; URL is already linked
href
else
content_tag(:a, h(href), :href => h(href))
content_tag(:a, h(href), :href => URI.escape(href))
end
end
end