From 52fb89ba7d00e21795986efd12ac6cc02374f12b Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Wed, 6 Mar 2024 17:29:26 +0100 Subject: [PATCH] RouterOS: fix regex for version 6 --- modules/MikroTikRouterOS6.php | 2 +- modules/MikroTikRouterOS6LTS.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/MikroTikRouterOS6.php b/modules/MikroTikRouterOS6.php index ab64f0b..f5ecda7 100644 --- a/modules/MikroTikRouterOS6.php +++ b/modules/MikroTikRouterOS6.php @@ -7,7 +7,7 @@ class MikroTikRouterOS6 extends PatchBase { } function check() : bool { if ($this->fetch('https://mikrotik.com/download')) { - $this->str_crop('id="routeros"', ''); + $this->str_crop('id="routeros6"', ''); return $this->parse('/([\d\.]+) Stable<\/th>/'); } return false; diff --git a/modules/MikroTikRouterOS6LTS.php b/modules/MikroTikRouterOS6LTS.php index 0351527..74ed575 100644 --- a/modules/MikroTikRouterOS6LTS.php +++ b/modules/MikroTikRouterOS6LTS.php @@ -7,8 +7,8 @@ class MikroTikRouterOS6LTS extends PatchBase { } function check() : bool { if ($this->fetch('https://mikrotik.com/download')) { - $this->str_crop('id="routeros"', ''); - return $this->parse('/([\d\.]+) Long-term<\/th>/'); + $this->str_crop('id="routeros6"', ''); + return $this->parse('/([\d\.]+) Long-[Tt]erm<\/th>/'); } return false; }