summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-08 13:30:55 +0000
committerErmal <eri@pfsense.org>2013-03-08 13:30:55 +0000
commita58a9ece9cf645c642bab7136a8d1cb9c0123c15 (patch)
treeeb13d206337356c53f5d0a8cbdd4f948922dd88c
parentb783eaf2de362baccd4974d28051d2a2d75cd001 (diff)
downloadpfsense-a58a9ece9cf645c642bab7136a8d1cb9c0123c15.zip
pfsense-a58a9ece9cf645c642bab7136a8d1cb9c0123c15.tar.gz
Be consistent on the check
-rwxr-xr-xusr/local/www/interfaces.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index f34f0b1..0711cb0 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -636,12 +636,11 @@ if ($_POST['apply']) {
if ($_POST['mtu'] < 576 || $_POST['mtu'] > 9000)
$input_errors[] = gettext("The MTU must be greater than 576 bytes.");
- if (preg_match('/_vlan[0-9]/', $wancfg['if'])) {
+ if (stristr($wancfg['if'], "_vlan")) {
$realhwif_array = get_parent_interface($wancfg['if']);
// Need code to handle MLPPP if we ever use $realhwif for MLPPP handling
$parent_realhwif = $realhwif_array[0];
$parent_if = convert_real_interface_to_friendly_interface_name($parent_realhwif);
-
if (!empty($parent_if) && isset($config['interfaces'][$parent_if]['mtu'])) {
$parent_mtu = $config['interfaces'][$parent_if]['mtu'];
OpenPOWER on IntegriCloud