mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 01:03:35 +02:00
Remove unneccessary sanitation #2687
This commit is contained in:
parent
0732f55d7c
commit
7b6a12a4cc
2 changed files with 1 additions and 6 deletions
|
@ -15,7 +15,7 @@ class Admin::CertificatesController < AdminController
|
|||
crt = certificate_params[:crt].open.read if certificate_params[:crt]
|
||||
csr = certificate_params[:csr].open.read if certificate_params[:csr]
|
||||
|
||||
@certificate = @api_user.certificates.build(csr: Certificate.sanitize(csr), crt: Certificate.sanitize(crt))
|
||||
@certificate = @api_user.certificates.build(csr: csr, crt: crt)
|
||||
if @api_user.save
|
||||
flash[:notice] = I18n.t('record_created')
|
||||
redirect_to [:admin, @api_user, @certificate]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue