master #1

Merged
lino.jorzick merged 203 commits from External/greenlight:master into master 2021-10-02 18:19:43 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 42f4fcff5a - Show all commits

View File

@ -48,7 +48,7 @@ module Joiner
end end
def valid_avatar?(url) def valid_avatar?(url)
return false if URI.regexp.match(url).nil? return false if URI.regexp(['http', 'https']).match(url).nil?
uri = URI(url) uri = URI(url)
http = Net::HTTP.new(uri.host, uri.port) http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https' http.use_ssl = true if uri.scheme == 'https'