diff options
author | Simon Rettberg | 2020-12-18 13:04:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-12-18 13:04:11 +0100 |
commit | 7afd67644de2bb03b4e4dca0a3579b4c7ae45cba (patch) | |
tree | bacf65e760a99fe17cc421846919921edbc58d0b /modules-available | |
parent | [locations] Fix duplicate class attribute (diff) | |
download | slx-admin-7afd67644de2bb03b4e4dca0a3579b4c7ae45cba.tar.gz slx-admin-7afd67644de2bb03b4e4dca0a3579b4c7ae45cba.tar.xz slx-admin-7afd67644de2bb03b4e4dca0a3579b4c7ae45cba.zip |
[serversetup-bwlp-ipxe] Fix redirect for invalid/no IP set
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php index 122c3791..4fd324da 100644 --- a/modules-available/serversetup-bwlp-ipxe/page.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php @@ -132,7 +132,7 @@ class Page_ServerSetup extends Page $subs = Dashboard::getSubmenus(); if (empty($subs)) { User::assertPermission('download'); - } elseif (Property::getServerIp() === 'invalid' && $addr) { + } elseif ($addr && !preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', Property::getServerIp())) { Util::redirect('?do=serversetup&show=address'); } else { Util::redirect($subs[0]['url']); |