Sanitize cert before saving #2687

This commit is contained in:
Martin Lensment 2015-06-17 16:41:36 +03:00
parent e6387a2847
commit 0732f55d7c
2 changed files with 6 additions and 1 deletions

View file

@ -132,6 +132,11 @@ class Certificate < ActiveRecord::Base
end
class << self
def sanitize(c)
return nil unless c
c.gsub("\r", '')
end
def update_crl
update_id_crl
update_registry_crl