mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Sanitize cert before saving #2687
This commit is contained in:
parent
e6387a2847
commit
0732f55d7c
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue