mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Topic Crawling should only crawl HTTP/S urls
This commit is contained in:
parent
76229535ac
commit
773445b8df
@ -28,6 +28,7 @@ module Jobs
|
||||
uri = URI(url)
|
||||
return if uri.blank? || uri.host.blank?
|
||||
return unless ['https', 'http'].include?(uri.scheme)
|
||||
return unless [80, 443].include?(uri.port)
|
||||
|
||||
headers = CrawlTopicLink.request_headers(uri)
|
||||
head = Excon.head(url, read_timeout: 20, headers: headers)
|
||||
|
Loading…
Reference in New Issue
Block a user