summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-27 22:43:56 -0500
committersullrich <sullrich@pfsense.org>2009-11-27 22:43:56 -0500
commit143048e3d753555762e10a1adc1de721e4f905d8 (patch)
tree610ce9ab7f70d84720ade4ac24a604d3bebcec5b /usr/local/www
parentf76a479d0f09a0ec7bfd884e02f7a53770c4ebad (diff)
downloadpfsense-143048e3d753555762e10a1adc1de721e4f905d8.zip
pfsense-143048e3d753555762e10a1adc1de721e4f905d8.tar.gz
Do not allow interface names as alias names Ticket #141
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 2e1d5b5..e4dc684 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -46,7 +46,9 @@
$pgtitle = array("Firewall","Aliases","Edit");
// Keywords not allowed in names
-$reserved_keywords = array("pass", "out", "queue", "max", "min");
+$reserved_keywords = array("pass", "out", "queue", "max", "min", "lan", "wan");
+for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++)
+ $reserved_keywords[] = "opt{$j}";
require("guiconfig.inc");
require_once("functions.inc");
OpenPOWER on IntegriCloud