diff options
author | Christian Hesse <mail@eworm.de> | 2024-03-29 11:09:22 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-03-29 11:11:17 +0100 |
commit | 4df1468e2569dfc1603876e24a9be933dc8cf8f2 (patch) | |
tree | bd394e0e9f782c813632178c4aa5ff94cdafbf44 /check-certificates.rsc | |
parent | bbdc9c65f50d2d290e4cd15a8c49ec0cb36a347d (diff) |
global-functions: rename $FetchUserAgent -> $FetchUserAgentStr
... to make sure the function does not clash with the variable we had before,
as this causes issue with news and changes notification.
Diffstat (limited to 'check-certificates.rsc')
-rw-r--r-- | check-certificates.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check-certificates.rsc b/check-certificates.rsc index ab78e22..20e2902 100644 --- a/check-certificates.rsc +++ b/check-certificates.rsc @@ -39,7 +39,7 @@ :global CertificateNameByCN; :global EscapeForRegEx; - :global FetchUserAgent; + :global FetchUserAgentStr; :global LogPrint; :global UrlEncode; :global WaitForFile; @@ -49,7 +49,7 @@ :foreach Type in={ ".pem"; ".p12" } do={ :local CertFileName ([ $UrlEncode $Name ] . $Type); :do { - /tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgent $ScriptName ] }) \ + /tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) \ ($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value; $WaitForFile $CertFileName; |