app/helpers/warclight_helper.rb in warclight-0.7.1 vs app/helpers/warclight_helper.rb in warclight-0.8.0

- old
+ new

@@ -6,10 +6,10 @@ def url_to_link(options = {}) safe_join(options[:value].map do |url| begin res = Net::HTTP.get_response(URI(url)) if res.code.start_with?('1', '2', '3') - link_to(url, url, target: '_blank') << ' 🔗' + link_to(url, url, target: '_blank', rel: 'noopener') << ' 🔗' else url + ' (Not available)' end rescue url + ' (Not available)'