Commit d4726a4ea46706c1e5504e5f22fc916a4c97edf6
Exists in
master
and in
29 other branches
Merge remote-tracking branch 'origin/master'
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)) | ... | ... |