summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateways.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-04-17 13:05:52 +0545
committerPhil Davis <phil.davis@inf.org>2017-04-17 13:05:52 +0545
commit161cd11371700512acbc84cbd3201bef379fb825 (patch)
tree5100dc916e1e5115252c5d311afc9328db7c45e2 /src/usr/local/www/system_gateways.php
parent8a0af41adc9c29ccf7b8dabb3b7658abf46054a6 (diff)
downloadpfsense-161cd11371700512acbc84cbd3201bef379fb825.zip
pfsense-161cd11371700512acbc84cbd3201bef379fb825.tar.gz
Refactor gateway parameter validation
Diffstat (limited to 'src/usr/local/www/system_gateways.php')
-rw-r--r--src/usr/local/www/system_gateways.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/usr/local/www/system_gateways.php b/src/usr/local/www/system_gateways.php
index 62b350a..b697e56 100644
--- a/src/usr/local/www/system_gateways.php
+++ b/src/usr/local/www/system_gateways.php
@@ -32,12 +32,7 @@ require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
-$a_gateways = return_gateways_array(true, false, true);
-$a_gateways_arr = array();
-foreach ($a_gateways as $gw) {
- $a_gateways_arr[] = $gw;
-}
-$a_gateways = $a_gateways_arr;
+$a_gateways = return_gateways_array(true, false, true, true);
if (!is_array($config['gateways']['gateway_item'])) {
$config['gateways']['gateway_item'] = array();
OpenPOWER on IntegriCloud