Detect and prevent image bombs, max. processable dimension 4096^2 (#7229)
This commit is contained in:
parent
3bf6da1ffc
commit
7db7d68136
4 changed files with 34 additions and 17 deletions
|
@ -40,6 +40,8 @@ class CustomEmoji < ApplicationRecord
|
|||
|
||||
remotable_attachment :image, LIMIT
|
||||
|
||||
include Attachmentable
|
||||
|
||||
def local?
|
||||
domain.nil?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue