aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions.rsc')
-rw-r--r--global-functions.rsc5
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)