From 7ad19c06173804ea407a0e8f291e9a6563ef9376 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Fri, 27 Jul 2018 23:41:07 +0200 Subject: [PATCH] Read Certificate SANs from list --- app/models/certificate.js | 3 +-- translations/en-us.yaml | 2 +- translations/zh-hans.yaml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/models/certificate.js b/app/models/certificate.js index d0e2bf1f9..b28a1bf14 100644 --- a/app/models/certificate.js +++ b/app/models/certificate.js @@ -37,8 +37,7 @@ export default Resource.extend({ return []; } - return sans.split(',') - .removeObject(cn) + return sans.removeObject(cn) .filter((san) => (`${ san }`).indexOf('@') === -1); }), diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 102138453..e6601f6e9 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -609,7 +609,7 @@ certificatesPage: labelText: Domain Names single: '{cn} ' withSan: | - {cn} + + {cn} + {sans, plural, =1 {1 other} other {# others} diff --git a/translations/zh-hans.yaml b/translations/zh-hans.yaml index f1466d946..7d8a48412 100644 --- a/translations/zh-hans.yaml +++ b/translations/zh-hans.yaml @@ -604,7 +604,7 @@ certificatesPage: labelText: 域名 single: '{cn} ' withSan: | - {cn} + + {cn} + {sans, plural, =1{1other} other{#others}