mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-07-15 08:24:37 +02:00
Fix character validation logic in script mode for improved version checking
This commit is contained in:
parent
ec3552b095
commit
114cf24d7e
1 changed files with 1 additions and 1 deletions
2
v3.rsc
2
v3.rsc
|
@ -129,7 +129,7 @@ if ($scriptMode = "osupdate" and $installOnlyPatchUpdates=true) do={
|
||||||
# Check each character
|
# Check each character
|
||||||
:for i from=0 to=([:len $version] - 1) do={
|
:for i from=0 to=([:len $version] - 1) do={
|
||||||
:set c [:pick $version $i]
|
:set c [:pick $version $i]
|
||||||
:if ([:find $allowedChars $c] = -1) do={
|
:if ([:len [:find $allowedChars $c]] = 0) do={
|
||||||
:return false
|
:return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue