summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_firewall.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-08-05 22:58:42 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-08-05 22:58:42 -0600
commit1beafceb73be3362da8d9d1c3f6e89c4dfc80607 (patch)
treebbd9f4ec33adeca38d235475ec46543dafdab37e /usr/local/www/system_advanced_firewall.php
parent5833e715407598e84a52878118afafab0d88aae2 (diff)
downloadpfsense-1beafceb73be3362da8d9d1c3f6e89c4dfc80607.zip
pfsense-1beafceb73be3362da8d9d1c3f6e89c4dfc80607.tar.gz
On system_advanced_firewall.php, fix display of selected TFTP interfaces after saving. Fixes #794
Diffstat (limited to 'usr/local/www/system_advanced_firewall.php')
-rw-r--r--usr/local/www/system_advanced_firewall.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php
index 370c47c..1fe923d 100644
--- a/usr/local/www/system_advanced_firewall.php
+++ b/usr/local/www/system_advanced_firewall.php
@@ -64,7 +64,7 @@ else
$pconfig['reflectiontimeout'] = $config['system']['reflectiontimeout'];
$pconfig['bypassstaticroutes'] = isset($config['filter']['bypassstaticroutes']);
$pconfig['disablescrub'] = isset($config['system']['disablescrub']);
-$pconfig['tftpinterface'] = $config['system']['tftpinterface'];
+$pconfig['tftpinterface'] = explode(",", $config['system']['tftpinterface']);
if ($_POST) {
@@ -355,7 +355,7 @@ function update_description(itemnum) {
$ifdescs = get_configured_interface_with_descr();
foreach ($ifdescs as $ifent => $ifdesc):
?>
- <option value="<?=$ifent;?>" <?php if (stristr($pconfig['tftpinterface'], $ifent)) echo "selected"; ?>><?=gettext($ifdesc);?></option>
+ <option value="<?=$ifent;?>" <?php if (in_array($ifent, $pconfig['tftpinterface'])) echo "selected"; ?>><?=gettext($ifdesc);?></option>
<?php endforeach; ?>
</select>
<strong><?=gettext("Choose the interfaces where you want TFTP proxy helper to be enabled.");?></strong>
OpenPOWER on IntegriCloud