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

Fix #1183

parent 121aa99c
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,9 @@ module Communication::Website::WithSecurity
code = block.template.code
# https://stackoverflow.com/questions/25095176/extracting-all-urls-from-a-page-using-ruby
code.scan(/[[:lower:]]+:\/\/[^\s"]+/).each do |url|
list << URI.parse(url).host
url = CGI.unescapeHTML(url)
host = URI.parse(url).host
list << host
end
end
list
......
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