summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2020-12-18 13:04:11 +0100
committerSimon Rettberg2020-12-18 13:04:11 +0100
commit7afd67644de2bb03b4e4dca0a3579b4c7ae45cba (patch)
treebacf65e760a99fe17cc421846919921edbc58d0b /modules-available/serversetup-bwlp-ipxe/page.inc.php
parent[locations] Fix duplicate class attribute (diff)
downloadslx-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/serversetup-bwlp-ipxe/page.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php2
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']);