diff options
author | Christian Hesse <mail@eworm.de> | 2024-01-31 15:31:07 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-31 23:10:15 +0100 |
commit | 821dd02e5e5c5274ee5d80a742859447c2f79d17 (patch) | |
tree | 528ee2ecbd46e4e8785a59f89bbf5a3f82731abc | |
parent | 09988d9892dd3c5894f13b3e9dd3cd63b107c5eb (diff) |
global-functions: $CertificateNameByCN: use $CleanName
-rw-r--r-- | global-functions.rsc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 3c3e2e1..d37b34b 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -168,11 +168,10 @@ :set CertificateNameByCN do={ :local CommonName [ :tostr $1 ]; - :global CharacterReplace; + :global CleanName; :local Cert [ /certificate/find where common-name=$CommonName ]; - /certificate/set $Cert \ - name=[ $CharacterReplace [ $CharacterReplace [ $CharacterReplace $CommonName "'" "-" ] " " "-" ] "---" "-" ]; + /certificate/set $Cert name=[ $CleanName $CommonName ]; } # multiply given character(s) |