Change ereg() to preg_match() function

This commit is contained in:
ccesario 2012-06-30 09:54:28 -03:00
parent 36e77fa968
commit f1bdc4e3a5

View File

@ -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