about summary refs log tree commit diff
path: root/app/lib/exceptions.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-04-23 09:16:38 +0200
committerGitHub <noreply@github.com>2018-04-23 09:16:38 +0200
commit7db7d68136d8c58c6d354e85096137c39d421671 (patch)
tree84255ce131308064e5e0bb7052dc4ac5e34c1718 /app/lib/exceptions.rb
parent3bf6da1ffcf8208a0608de7bff6e2155c40e2871 (diff)
Detect and prevent image bombs, max. processable dimension 4096^2 (#7229)
Diffstat (limited to 'app/lib/exceptions.rb')
-rw-r--r--app/lib/exceptions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/exceptions.rb b/app/lib/exceptions.rb
index e88e98eae..01346bfe5 100644
--- a/app/lib/exceptions.rb
+++ b/app/lib/exceptions.rb
@@ -6,6 +6,7 @@ module Mastodon
   class ValidationError < Error; end
   class HostValidationError < ValidationError; end
   class LengthValidationError < ValidationError; end
+  class DimensionsValidationError < ValidationError; end
   class RaceConditionError < Error; end
 
   class UnexpectedResponseError < Error