Skip to content
Snippets Groups Projects
Commit 9786143c authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #1187

parent 805c5e5d
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ module Communication::Website::WithSecurity
code.scan(/[[:lower:]]+:\/\/[^\s"]+/).each do |url|
url = CGI.unescapeHTML(url)
url = ActionController::Base.helpers.strip_tags(url)
url = URI::Parser.new.escape(url)
host = URI.parse(url).host
list << host
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment