summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-09-29 08:41:13 +0000
committerErmal Luçi <eri@pfsense.org>2009-09-29 08:41:13 +0000
commitd6a891da5a4c6718eeb1a6907a0ac3712a968906 (patch)
treeafc690ccc123b444dbc5b9127610ffc8a78f9715 /usr
parentad9c8bb4fe58bde041199a2f4fca7b7ca928173c (diff)
downloadpfsense-d6a891da5a4c6718eeb1a6907a0ac3712a968906.zip
pfsense-d6a891da5a4c6718eeb1a6907a0ac3712a968906.tar.gz
Avoid errors that appear if this is set uncorrectly.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 3b86f2e..9e5cef0 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -477,7 +477,10 @@ if ($_POST) {
else
unset($wancfg['blockbogons']);
$wancfg['spoofmac'] = $_POST['spoofmac'];
- $wancfg['mtu'] = $_POST['mtu'];
+ if (empty($_POST['mtu']))
+ unset($wancfg['mtu']);
+ else
+ $wancfg['mtu'] = $_POST['mtu'];
if (isset($wancfg['wireless']))
handle_wireless_post();
write_config();
OpenPOWER on IntegriCloud