diff --git a/emhttp/plugins/dynamix/NetworkRules.page b/emhttp/plugins/dynamix/NetworkRules.page index cfe27ff87..ba9b7ccf1 100644 --- a/emhttp/plugins/dynamix/NetworkRules.page +++ b/emhttp/plugins/dynamix/NetworkRules.page @@ -19,7 +19,7 @@ Cond="file_exists('/boot/config/network-rules.cfg')" $cfg = '/boot/config/network-rules.cfg'; function strip($item) { - [$key, $val] = my_explode('"', $item); + [$key, $val] = explode('"', $item); return $val; } @@ -28,7 +28,7 @@ exec("grep -Po '^# \K.*' $cfg", $info); $link = []; $i = 0; foreach ($rules as $rule) { - [$mac, $eth] = array_map('strip', explode(',', $rule)); + [$mac, $eth] = array_map('strip', my_explode(',', $rule)); if (str_starts_with($eth, 'eth')) { $link[$eth]['mac'] = $mac; $link[$eth]['info'] = $info[$i];