mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Change ereg() to preg_match() function
This commit is contained in:
parent
36e77fa968
commit
f1bdc4e3a5
@ -69,7 +69,7 @@ function set_networking_interfaces_ports() {
|
||||
$key = null;
|
||||
|
||||
/* Only present auto interface option if running from LiveCD and interface mismatch*/
|
||||
if ((ereg("cdrom", $g['platform'])) && is_interface_mismatch())
|
||||
if ((preg_match("/cdrom/", $g['platform'])) && is_interface_mismatch())
|
||||
$auto_assign = false;
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
Loading…
Reference in New Issue
Block a user