Commit b811e582005102c73b26b1cca33d1fbba14b0a45

Authored by Antonio Terceiro
1 parent dcf73dee

ChatController: handle gravatar URL's without protocol

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/public/chat_controller.rb
... ... @@ -19,7 +19,7 @@ class ChatController < PublicController
19 19 def avatar
20 20 profile = environment.profiles.find_by_identifier(params[:id])
21 21 filename, mimetype = profile_icon(profile, :minor, true)
22   - if filename =~ /^https?:/
  22 + if filename =~ /^(https?:)?\/\//
23 23 redirect_to filename
24 24 else
25 25 data = File.read(File.join(Rails.root, 'public', filename))
... ...