Skip to content

Commit

Permalink
Derp.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Dec 16, 2017
1 parent 941b7ce commit 35a3448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/05-string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def linkify
end
result.gsub(URL_REGEXP) do |url|
dest = url.resolve_url
"<a href='#{dest}' title='#{url.esc}' rel='noreferrer'>#{dest}</a>"
"<a href='#{dest.esc}' title='#{url.esc}' rel='noreferrer'>#{dest.esc}</a>"
end
end

Expand All @@ -197,7 +197,7 @@ def linkify_and_embed(request=nil, embed_only="")
dest = url.resolve_url
html = dest.embed_html(request)
embeds.push(html) if html and !embeds.include?(html)
"<a href='#{dest}' title='#{url.esc}' rel='noreferrer'>#{dest}</a>"
"<a href='#{dest.esc}' title='#{url.esc}' rel='noreferrer'>#{dest.esc}</a>"
end
embed_only.scan(URL_REGEXP) do |url|
dest = url.resolve_url
Expand Down

0 comments on commit 35a3448

Please sign in to comment.