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

Fix #1184

parent 492f2de2
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ module Communication::Website::WithSecurity
# https://stackoverflow.com/questions/25095176/extracting-all-urls-from-a-page-using-ruby
code.scan(/[[:lower:]]+:\/\/[^\s"]+/).each do |url|
url = CGI.unescapeHTML(url)
url = ActionController::Base.helpers.strip_tags(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