Fix admin page crashing when trying to block an invalid domain name (#13884)
* Fix admin page crashing when trying to block an invalid domain name Fixes #13880 * Fix trailing and leading spaces not being properly stripped for domain blocks
This commit is contained in:
@ -4,7 +4,7 @@ module DomainNormalizable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
before_save :normalize_domain
|
||||
before_validation :normalize_domain
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user