From c192f2c0321560c0018451b63e4a27169f65eee6 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Tue, 24 Feb 2026 07:27:30 +1100 Subject: [PATCH] FE: mixed case on MACs work Signed-off-by: jokob-sk --- front/deviceDetailsEdit.php | 2 +- front/deviceDetailsTools.php | 12 ++++++------ front/index.php | 2 +- front/network.php | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/front/deviceDetailsEdit.php b/front/deviceDetailsEdit.php index d121e8c8..2ff37396 100755 --- a/front/deviceDetailsEdit.php +++ b/front/deviceDetailsEdit.php @@ -363,7 +363,7 @@ function getDeviceData() { generateSimpleForm(relevantSettings); - toggleNetworkConfiguration(mac == 'Internet') + toggleNetworkConfiguration(mac.toLowerCase() == 'internet') initSelect2(); initHoverNodeInfo(); diff --git a/front/deviceDetailsTools.php b/front/deviceDetailsTools.php index 0c0756ac..404c8349 100755 --- a/front/deviceDetailsTools.php +++ b/front/deviceDetailsTools.php @@ -5,7 +5,7 @@ ?> - +

@@ -24,7 +24,7 @@ - +

@@ -47,7 +47,7 @@ - +

@@ -108,7 +108,7 @@ - +

@@ -126,7 +126,7 @@ - +

@@ -144,7 +144,7 @@ - +

diff --git a/front/index.php b/front/index.php index ece4e883..ff57102e 100755 --- a/front/index.php +++ b/front/index.php @@ -11,7 +11,7 @@ require_once $_SERVER['DOCUMENT_ROOT'].'/php/templates/security.php'; // session_start(); // } -session_start(); +// session_start(); const DEFAULT_REDIRECT = '/devices.php'; diff --git a/front/network.php b/front/network.php index 671628fc..4ea6070d 100755 --- a/front/network.php +++ b/front/network.php @@ -630,7 +630,7 @@ function getHierarchy() for(i in deviceListGlobal) { - if(deviceListGlobal[i].devMac == 'Internet') + if(deviceListGlobal[i].devMac.toLowerCase() == 'internet') { internetNode = deviceListGlobal[i];