diff --git a/includes/functions.php b/includes/functions.php index 7841763553..84ba44deac 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -881,7 +881,7 @@ function is_port_valid($port, $device) { $fringe = array_merge($config['bad_if'],$config['os'][$device['os']]['bad_if']); } foreach ($fringe as $bi) { - if (strstr($if, $bi)) { + if (stristr($if, $bi)) { $valid = 0; d_echo("ignored : $bi : $if"); } @@ -928,7 +928,7 @@ function is_port_valid($port, $device) { $fringe = array_merge($config['bad_iftype'],$config['os'][$device['os']]['bad_iftype']); } foreach ($fringe as $bi) { - if (strstr($port['ifType'], $bi)) { + if (stristr($port['ifType'], $bi)) { $valid = 0; d_echo("ignored ifType : ".$port['ifType']." (matched: ".$bi." )"); }