diff --git a/app/controllers/concerns/joiner.rb b/app/controllers/concerns/joiner.rb index 8ab2fcab..a54b48c9 100644 --- a/app/controllers/concerns/joiner.rb +++ b/app/controllers/concerns/joiner.rb @@ -48,7 +48,7 @@ module Joiner end 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) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true if uri.scheme == 'https'