summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-09 10:11:31 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-09 10:11:31 +0000
commit5313aea509c7e799cc406e7e9566e8332b3cad00 (patch)
tree195c4cc29df291b7bbced56f6a4656d141c4cd51 /usr/local/www/system_gateways_edit.php
parenta2b724a66a48fe56706dfe93326046417338d19c (diff)
downloadpfsense-5313aea509c7e799cc406e7e9566e8332b3cad00.zip
pfsense-5313aea509c7e799cc406e7e9566e8332b3cad00.tar.gz
Ticket #303. Correctly retain the interface in case or validation errors.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 54691ca..7dfb6aa 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -204,8 +204,11 @@ if ($_POST) {
header("Location: system_gateways.php");
exit;
- } else
+ } else {
$pconfig = $_POST;
+ if (empty($_POST['friendlyiface']))
+ $pconfig['friendlyiface'] = $_POST['interface'];
+ }
}
OpenPOWER on IntegriCloud