Skip to content

Commit

Permalink
一旦URI.encodeをコメントアウトする
Browse files Browse the repository at this point in the history
  • Loading branch information
ima1zumi committed Oct 27, 2021
1 parent 686e036 commit 764c466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/link_checker/checker.rb
Expand Up @@ -31,7 +31,8 @@ def check
locks = Queue.new
5.times { locks.push :lock }
all_links.reject! do |link|
url = URI.encode(link.url) # rubocop:disable Lint/UriEscapeUnescape
# url = URI.encode(link.url) # rubocop:disable Lint/UriEscapeUnescape
url = link.url
uri = URI.parse(url)

!uri || DENY_LIST.include?(uri.host)
Expand Down

0 comments on commit 764c466

Please sign in to comment.