Updated strstr to stristr in is_port_valid function

This commit is contained in:
laf
2016-07-30 15:50:44 +01:00
parent 9e305241fd
commit 7855aeb00c
+2 -2
View File
@@ -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." )");
}