From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Mon, 4 May 2026 08:50:04 +0000 (+0300) Subject: Autocommit in repo: ros.vados.ru, generated by owner: root, in 11:50:03 04.05.2026. X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=dd782772645e42f557e5ec14f7dd4081037aa7e3;p=Mikrotiks%2Fros.vados.ru.git Autocommit in repo: ros.vados.ru, generated by owner: root, in 11:50:03 04.05.2026. --- diff --git a/html/AM-GlobalFunc.rsc b/html/AM-GlobalFunc.rsc index 3ea3d8133..216e7226d 100644 --- a/html/AM-GlobalFunc.rsc +++ b/html/AM-GlobalFunc.rsc @@ -17,9 +17,9 @@ :global GlobalFuncReady false; # Git commit id & info, expected configuration version -:global CommitId "main/549/8641dec0"; +:global CommitId "main/550/ba41107a"; :global CommitTAG "unknown"; -:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 11:45:03 04.05.2026."; +:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 11:50:03 04.05.2026."; # The variables are received right here. :global GlobalConfVersion 140; @@ -1344,8 +1344,6 @@ :local CheckCert [:tostr $3]; :local fetchMode [:tostr $4]; :local fetchMethod [:tostr $5]; - :local FetchString "undefined"; - :global CleanName; :global FetchUserAgentStr; :global GetRandom20CharAlNum; @@ -1364,11 +1362,11 @@ :return false; } - :local FileName ($DirName . "/" . [ $CleanName $0 ] . "-" . [ $GetRandom20CharAlNum ]); <-- ВОЗВРАЩАЕМ $0 + :local FileName ($DirName . "/" . [ $CleanName $0 ] . "-" . [ $GetRandom20CharAlNum ]); :do { - /tool/fetch check-certificate=$CheckCert url=("\" . $fetchUrl . "\"") dst-path=$FileName \ + /tool/fetch check-certificate=$CheckCert url=$fetchUrl dst-path=$FileName \ http-header-field=({ [ $FetchUserAgentStr $FetchLargeScript ] }) as-value; - } onerror Err { + } on-error={ :if ([ $WaitForFile $FileName 500ms ] = true) do={ $RmFile $FileName; }