]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 14:10:03 04.05.2026.
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Mon, 4 May 2026 11:10:03 +0000 (14:10 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Mon, 4 May 2026 11:10:03 +0000 (14:10 +0300)
html/AM-FwAddrLists.rsc
html/AM-GlobalFunc.rsc

index 3291c9ebfb123776bc2cfacbc27bd1c1a2883be1..d2656b9bd3830414a52dcf75e6cbb5b1fea2a342 100644 (file)
@@ -28,7 +28,9 @@
   :global HumanReadableNum;
   :global IfThenElse;
   :global LogPrint;
-
+  :global Grep;
+  :local ValidChars "0123456789.:/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-";
+  
   :global NetMask4;
   :global NetMask6;
   :global ScriptLock;
@@ -36,7 +38,6 @@
   :local FindDelim;
   :set FindDelim do={
     :local Length [ :tostr $1 ];
-    :local ValidChars "0123456789.:/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-";
     :for I from=0 to=([ :len $Length ] - 1) do={
       :if ([ :typeof [ :find $ValidChars [ :pick $Length $I ] ] ] != "num") do={
         :return $I;
 
   :foreach FwListFile in=[ :deserialize $tmpIndex delimiter="\n" from=dsv options=dsv.plain ] do={
     :local FwListName ($FwListFile->0);
+    :local currentListName [ $Grep $FwListName $ValidChars ];
+    :log warning ($ScriptName . " Parsing address-list index entry: " . $currentListName);
+
     :local Delim [ $FindDelim $FwListName ];
     :if ($Delim = 0) do={ :set FwListName ""; };
-    :if ([ :len $FwListName ] = 0) do={1
+    :if ([ :len $FwListName ] = 0) do={
       :log error ($ScriptName . " Failed parsing address-list index entry: " . $FwListFile->0);
       :error true; 
       }
index 42ab3df0ddbb43e0fe54a53fbdacb2c6881aae38..331033aa24303ce177c13e670fa33c34198a9adc 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/562/cda75821";
+:global CommitId "main/563/53a25a33";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 14:00:03 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 14:10:03 04.05.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 140;