Detect and prevent image bombs, max. processable dimension 4096^2 (#7229)

This commit is contained in:
Eugen Rochko
2018-04-23 09:16:38 +02:00
committed by GitHub
parent 3bf6da1ffc
commit 7db7d68136
4 changed files with 34 additions and 17 deletions

View File

@ -40,6 +40,8 @@ class CustomEmoji < ApplicationRecord
remotable_attachment :image, LIMIT
include Attachmentable
def local?
domain.nil?
end