global-functions: $CertificateNameByCN: replace apostrophe

This commit is contained in:
Christian Hesse 2020-04-24 11:09:02 +02:00
parent b67712cfe4
commit 14dd16ef5a

View file

@ -124,7 +124,8 @@
:global CharacterReplace; :global CharacterReplace;
:local Cert [ / certificate find where common-name=$CommonName ]; :local Cert [ / certificate find where common-name=$CommonName ];
/ certificate set $Cert name=[ $CharacterReplace [ $CharacterReplace $CommonName " " "-" ] "---" "-" ]; / certificate set $Cert \
name=[ $CharacterReplace [ $CharacterReplace [ $CharacterReplace $CommonName "'" "-" ] " " "-" ] "---" "-" ];
} }
# character replace # character replace