ip bans: fix ip addresses with trailing spaces being invalid.
This commit is contained in:
@@ -73,6 +73,10 @@ class IpBan < ApplicationRecord
|
|||||||
str
|
str
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def ip_addr=(ip_addr)
|
||||||
|
super(ip_addr.strip)
|
||||||
|
end
|
||||||
|
|
||||||
def self.available_includes
|
def self.available_includes
|
||||||
[:creator]
|
[:creator]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user